diff options
author | Xin LI <delphij@FreeBSD.org> | 2009-12-11 02:09:46 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2009-12-11 02:09:46 +0000 |
commit | 566a751354a439384a12dd3f4b43ff3b55ddf9a8 (patch) | |
tree | d0e3ba96a26c4440f4e0291b4891a9b2246b11cf /contrib/expat/lib/xmltok_impl.c | |
parent | 1d0185c4363934be98d9e06d1d5b50882916b049 (diff) | |
parent | 9fcd883dcb0db8be87165724e54d48a6c547c49f (diff) | |
download | src-566a751354a439384a12dd3f4b43ff3b55ddf9a8.tar.gz src-566a751354a439384a12dd3f4b43ff3b55ddf9a8.zip |
Apply two vendor fixes for CVE-2009-3720.
Security: CVE-2009-3720
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=200392
Diffstat (limited to 'contrib/expat/lib/xmltok_impl.c')
-rw-r--r-- | contrib/expat/lib/xmltok_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/expat/lib/xmltok_impl.c b/contrib/expat/lib/xmltok_impl.c index 126881925222..16dfb85f031e 100644 --- a/contrib/expat/lib/xmltok_impl.c +++ b/contrib/expat/lib/xmltok_impl.c @@ -1744,7 +1744,7 @@ PREFIX(updatePosition)(const ENCODING *enc, const char *end, POSITION *pos) { - while (ptr != end) { + while (ptr < end) { switch (BYTE_TYPE(enc, ptr)) { #define LEAD_CASE(n) \ case BT_LEAD ## n: \ |