diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2006-10-17 21:23:17 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2006-10-17 21:23:17 +0000 |
commit | 777737ea020106db4d376f2d8b3992198892f29a (patch) | |
tree | ccee033f5e7001f4ff9fdccb23569d1c74cd3e19 /xmlregexp.c | |
parent | 5addfebd062d7f96cabb7459d4d1058f0593ef93 (diff) | |
download | android_external_libxml2-777737ea020106db4d376f2d8b3992198892f29a.tar.gz android_external_libxml2-777737ea020106db4d376f2d8b3992198892f29a.tar.bz2 android_external_libxml2-777737ea020106db4d376f2d8b3992198892f29a.zip |
applied fix from Christopher Boumenot for bug #362714 on regexps missing
* xmlregexp.c: applied fix from Christopher Boumenot for bug
#362714 on regexps missing ']'
Daniel
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 58f480da..e7d519eb 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)); } /** |