[Expat-checkins] expat/lib xmltok_impl.c,1.14,1.15
Karl Waclawek
kwaclaw at users.sourceforge.net
Fri Jun 13 15:18:47 CEST 2008
Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv4685/lib
Modified Files:
xmltok_impl.c
Log Message:
Better fix for bug #1990430.
Index: xmltok_impl.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmltok_impl.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- xmltok_impl.c 11 Jun 2008 14:43:57 -0000 1.14
+++ xmltok_impl.c 13 Jun 2008 13:18:44 -0000 1.15
@@ -1744,12 +1744,10 @@
const char *end,
POSITION *pos)
{
- while (ptr != end) {
+ while (ptr < end) {
switch (BYTE_TYPE(enc, ptr)) {
#define LEAD_CASE(n) \
case BT_LEAD ## n: \
- if (end - ptr < n) \
- return; \
ptr += n; \
break;
LEAD_CASE(2) LEAD_CASE(3) LEAD_CASE(4)
More information about the Expat-checkins
mailing list