components/libexpat/patches/CVE-2009-3720.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Wed, 01 Jun 2011 01:18:02 -0700
changeset 274 816a4eb924b1
permissions -rw-r--r--
7049760 Move libexpat to userland
--- lib/xmltok_impl.c	2006/11/26 17:34:46	1.13
+++ lib/xmltok_impl.c	2008/06/13 13:18:44	1.15
@@ -1744,7 +1744,7 @@
                        const char *end,
                        POSITION *pos)
 {
-  while (ptr != end) {
+  while (ptr < end) {
     switch (BYTE_TYPE(enc, ptr)) {
 #define LEAD_CASE(n) \
     case BT_LEAD ## n: \