components/libexpat/patches/CVE-2009-3720.patch
changeset 274 816a4eb924b1
equal deleted inserted replaced
273:cec58567b4f4 274:816a4eb924b1
       
     1 --- lib/xmltok_impl.c	2006/11/26 17:34:46	1.13
       
     2 +++ lib/xmltok_impl.c	2008/06/13 13:18:44	1.15
       
     3 @@ -1744,7 +1744,7 @@
       
     4                         const char *end,
       
     5                         POSITION *pos)
       
     6  {
       
     7 -  while (ptr != end) {
       
     8 +  while (ptr < end) {
       
     9      switch (BYTE_TYPE(enc, ptr)) {
       
    10  #define LEAD_CASE(n) \
       
    11      case BT_LEAD ## n: \