diff options
author | Mike Hommey <glandium@debian.org> | 2006-10-26 11:17:37 +0200 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2006-10-26 11:17:37 +0200 |
commit | 968041a8b2ec86c39b5074024ce97d136ecd9a95 (patch) | |
tree | 6971d7bce63213fd376b0e66311d0c67a8da4d64 /xmlregexp.c | |
parent | a7e9d3f37d5e9fba4b9acaa43e7c12b6d9a669ae (diff) | |
download | libxml2-968041a8b2ec86c39b5074024ce97d136ecd9a95.tar.gz |
Load /tmp/libxml2-2.6.27 intoupstream/2.6.27.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'xmlregexp.c')
-rw-r--r-- | xmlregexp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmlregexp.c b/xmlregexp.c index 58f480d..e7d519e 100644 --- a/xmlregexp.c +++ b/xmlregexp.c @@ -4807,6 +4807,11 @@ xmlFAParseCharRange(xmlRegParserCtxtPtr ctxt) { int start = -1; int end = -1; + if (CUR == '\0') { + ERROR("Expecting ']'"); + return; + } + if ((CUR == '&') && (NXT(1) == '#')) { end = start = xmlFAParseCharRef(ctxt); xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg, @@ -4897,7 +4902,7 @@ xmlFAParsePosCharGroup(xmlRegParserCtxtPtr ctxt) { xmlFAParseCharRange(ctxt); } } while ((CUR != ']') && (CUR != '^') && (CUR != '-') && - (ctxt->error == 0)); + (CUR != 0) && (ctxt->error == 0)); } /** |