Author: delphij Date: Thu Dec 10 21:23:46 2009 New Revision: 200368 URL: http://svn.freebsd.org/changeset/base/200368
Log: Correct a DoS issue when processing XML document with malformed UTF-8 sequences. Obtained from: expat CVS (revisions 1.14 and 1.15) Security: CVE-2009-3560 Modified: vendor/expat/dist/lib/xmltok_impl.c Modified: vendor/expat/dist/lib/xmltok_impl.c ============================================================================== --- vendor/expat/dist/lib/xmltok_impl.c Thu Dec 10 21:18:53 2009 (r200367) +++ vendor/expat/dist/lib/xmltok_impl.c Thu Dec 10 21:23:46 2009 (r200368) @@ -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: \ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"