[Expat-checkins] expat/lib xmlparse.c,1.156,1.157

Karl Waclawek kwaclaw at users.sourceforge.net
Thu Jul 6 04:50:29 CEST 2006


Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv29783

Modified Files:
	xmlparse.c 
Log Message:
Fixed infinite loop when character data handler was cleared under
XML_TOK_DATA_CHARS in doContent() and doCdataSection().

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -d -r1.156 -r1.157
--- xmlparse.c	5 Jul 2006 13:06:59 -0000	1.156
+++ xmlparse.c	6 Jul 2006 02:50:27 -0000	1.157
@@ -2557,6 +2557,8 @@
               break;
             *eventPP = s;
           }
+          else
+            break;
         }
       }
       else if (characterDataHandler)
@@ -3137,6 +3139,8 @@
               break;
             *eventPP = s;
           }
+          else
+            break;
         }
       }
       else if (characterDataHandler)



More information about the Expat-checkins mailing list