diff options
author | kwaclaw <kwaclaw> | 2008-06-11 14:43:57 +0000 |
---|---|---|
committer | kwaclaw <kwaclaw> | 2008-06-11 14:43:57 +0000 |
commit | 66c558248a323812fd802116bf429503335248c0 (patch) | |
tree | 14a91fba49a9830595f03590f4f86495eb87b52f | |
parent | c30efcfa4069a1344a544649b37b72118489e2f9 (diff) | |
download | libexpat-66c558248a323812fd802116bf429503335248c0.tar.gz |
Fix for bug #1990430.
-rw-r--r-- | lib/xmltok_impl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xmltok_impl.c b/lib/xmltok_impl.c index 1268819..b71410d 100644 --- a/lib/xmltok_impl.c +++ b/lib/xmltok_impl.c @@ -1748,6 +1748,8 @@ PREFIX(updatePosition)(const ENCODING *enc, switch (BYTE_TYPE(enc, ptr)) { #define LEAD_CASE(n) \ case BT_LEAD ## n: \ + if (end - ptr < n) \ + return; \ ptr += n; \ break; LEAD_CASE(2) LEAD_CASE(3) LEAD_CASE(4) |