Return-Path: Delivered-To: apmail-xml-xalan-cvs-archive@xml.apache.org Received: (qmail 31560 invoked by uid 500); 5 Feb 2003 07:08:21 -0000 Mailing-List: contact xalan-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: Delivered-To: mailing list xalan-cvs@xml.apache.org Received: (qmail 31531 invoked from network); 5 Feb 2003 07:08:20 -0000 Date: 5 Feb 2003 07:08:20 -0000 Message-ID: <20030205070820.57152.qmail@icarus.apache.org> From: dbertoni@apache.org To: xml-xalan-cvs@apache.org Subject: cvs commit: xml-xalan/c/src/XPath XPathProcessorImpl.cpp X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N dbertoni 2003/02/04 23:08:19 Modified: c/src/XPath XPathProcessorImpl.cpp Log: Check for unbalanced string literals. Fixes Bugzilla 16794. Revision Changes Path 1.70 +2 -2 xml-xalan/c/src/XPath/XPathProcessorImpl.cpp Index: XPathProcessorImpl.cpp =================================================================== RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathProcessorImpl.cpp,v retrieving revision 1.69 retrieving revision 1.70 diff -u -r1.69 -r1.70 --- XPathProcessorImpl.cpp 7 Jan 2003 00:40:55 -0000 1.69 +++ XPathProcessorImpl.cpp 5 Feb 2003 07:08:19 -0000 1.70 @@ -265,7 +265,7 @@ for(++i; i < nChars && (c = charAt(pat, i)) != XalanUnicode::charQuoteMark; ++i); - if(c == XalanUnicode::charQuoteMark) + if(c == XalanUnicode::charQuoteMark && i < nChars) { substring(pat, theToken, startSubstring, i + 1); @@ -303,7 +303,7 @@ for(++i; i < nChars && (c = charAt(pat, i)) != XalanUnicode::charApostrophe; ++i); - if(c == XalanUnicode::charApostrophe) + if(c == XalanUnicode::charApostrophe && i < nChars) { substring(pat, theToken, startSubstring, i + 1); --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-cvs-help@xml.apache.org