xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/src/XPath XPathProcessorImpl.cpp
Date Wed, 05 Feb 2003 07:08:20 GMT
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


Mime
View raw message