aboutsummaryrefslogtreecommitdiff
path: root/contrib/expat/lib/xmltok_impl.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-12-11 02:09:46 +0000
committerXin LI <delphij@FreeBSD.org>2009-12-11 02:09:46 +0000
commit566a751354a439384a12dd3f4b43ff3b55ddf9a8 (patch)
treed0e3ba96a26c4440f4e0291b4891a9b2246b11cf /contrib/expat/lib/xmltok_impl.c
parent1d0185c4363934be98d9e06d1d5b50882916b049 (diff)
parent9fcd883dcb0db8be87165724e54d48a6c547c49f (diff)
downloadsrc-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.c2
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: \