svn commit: r200496 - stable/5/contrib/expat/lib
Xin LI
delphij at FreeBSD.org
Sun Dec 13 17:06:55 PST 2009
Author: delphij
Date: Mon Dec 14 01:06:55 2009
New Revision: 200496
URL: http://svn.freebsd.org/changeset/base/200496
Log:
MFC r200392:
Apply two vendor fixes for CVE-2009-3720.
Security: CVE-2009-3720
Modified:
stable/5/contrib/expat/lib/xmlparse.c
stable/5/contrib/expat/lib/xmltok_impl.c
Directory Properties:
stable/5/contrib/expat/ (props changed)
Modified: stable/5/contrib/expat/lib/xmlparse.c
==============================================================================
--- stable/5/contrib/expat/lib/xmlparse.c Mon Dec 14 01:06:21 2009 (r200495)
+++ stable/5/contrib/expat/lib/xmlparse.c Mon Dec 14 01:06:55 2009 (r200496)
@@ -3168,7 +3168,6 @@ doProlog(XML_Parser parser,
return XML_ERROR_NO_ELEMENTS;
default:
tok = -tok;
- next = end;
break;
}
}
Modified: stable/5/contrib/expat/lib/xmltok_impl.c
==============================================================================
--- stable/5/contrib/expat/lib/xmltok_impl.c Mon Dec 14 01:06:21 2009 (r200495)
+++ stable/5/contrib/expat/lib/xmltok_impl.c Mon Dec 14 01:06:55 2009 (r200496)
@@ -1741,7 +1741,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: \
More information about the svn-src-all
mailing list