summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-12-10 21:23:46 +0000
committerdelphij <delphij@FreeBSD.org>2009-12-10 21:23:46 +0000
commit2f6a20e2cac3e778fbb0861a358511c49298db94 (patch)
treed769c9c51a0f8051163a5630efe49e0a935b3603 /lib
parentec9b7e31858761e82682d82f4a00e6661922bc95 (diff)
downloadFreeBSD-src-2f6a20e2cac3e778fbb0861a358511c49298db94.zip
FreeBSD-src-2f6a20e2cac3e778fbb0861a358511c49298db94.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/xmltok_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xmltok_impl.c b/lib/xmltok_impl.c
index 1268819..16dfb85 100644
--- a/lib/xmltok_impl.c
+++ b/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: \
OpenPOWER on IntegriCloud