http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmltok_impl.c?view=log (1.13 -> 1.15) http://svn.python.org/view?view=rev&revision=74429 --- lib/xmltok_impl.c 2006-11-26 18:34:46.000000000 +0100 +++ lib/xmltok_impl.c.oden 2009-08-21 23:01:22.000000000 +0200 @@ -1744,7 +1744,7 @@ PREFIX(updatePosition)(const ENCODING *e const char *end, POSITION *pos) { - while (ptr != end) { + while (ptr < end) { switch (BYTE_TYPE(enc, ptr)) { #define LEAD_CASE(n) \ case BT_LEAD ## n: \