xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r901280 - /xerces/c/trunk/src/xercesc/internal/XMLReader.cpp
Date Wed, 20 Jan 2010 17:06:14 GMT
Author: johns
Date: Wed Jan 20 17:06:14 2010
New Revision: 901280

URL: http://svn.apache.org/viewvc?rev=901280&view=rev
Log:
Fix an infinite loop bug in XML 1.1 NCName parsing.

Modified:
    xerces/c/trunk/src/xercesc/internal/XMLReader.cpp

Modified: xerces/c/trunk/src/xercesc/internal/XMLReader.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/internal/XMLReader.cpp?rev=901280&r1=901279&r2=901280&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/internal/XMLReader.cpp (original)
+++ xerces/c/trunk/src/xercesc/internal/XMLReader.cpp Wed Jan 20 17:06:14 2010
@@ -775,6 +775,7 @@
             {
                 if(isNCNameChar(fCharBuf[fCharIndex])) fCharIndex++;
                 else if((fCharBuf[fCharIndex] >= 0xD800) && (fCharBuf[fCharIndex]
<= 0xDB7F) && ((fCharBuf[fCharIndex+1] < 0xDC00) || (fCharBuf[fCharIndex+1]
> 0xDFFF))) fCharIndex+=2;
+		else break;
             }
         }
         else



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Mime
View raw message