]> granicus.if.org Git - libexpat/commitdiff
Fix abort with space following percent sign in entity value
authorJames Clark <jclark@users.sourceforge.net>
Mon, 9 Oct 2000 06:26:10 +0000 (06:26 +0000)
committerJames Clark <jclark@users.sourceforge.net>
Mon, 9 Oct 2000 06:26:10 +0000 (06:26 +0000)
expat/lib/xmlparse.c

index 1c7c8f3251fea758dc4833c02700dc6d202c8365..5395b487bc5950a736d078d9cb11d731d2a9824e 100644 (file)
@@ -4,7 +4,7 @@ See the file COPYING for copying permission.
 */
 
 static char RCSId[]
-  = "$Header$";
+  = "$Header: /cvsroot/expat/expat/lib/xmlparse.c,v 1.6 2000/09/29 14:57:45 coopercc Exp $";
 
 #include <config.h>
 
@@ -3531,6 +3531,11 @@ enum XML_Error storeEntityValue(XML_Parser parser,
        return XML_ERROR_NO_MEMORY;
       *(pool->ptr)++ = 0xA;
       break;
+    case XML_TOK_PERCENT:
+      if (pool->end == pool->ptr && !poolGrow(pool))
+       return XML_ERROR_NO_MEMORY;
+      *(pool->ptr)++ = '%';
+      break;
     case XML_TOK_CHAR_REF:
       {
        XML_Char buf[XML_ENCODE_MAX];