mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
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
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Tue Oct 17 23:23:26 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* xmlregexp.c: applied fix from Christopher Boumenot for bug
|
||||||
|
#362714 on regexps missing ']'
|
||||||
|
|
||||||
Tue Oct 17 22:32:42 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
Tue Oct 17 22:32:42 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* parserInternals.c: applied patch from Marius Konitzer to avoid
|
* parserInternals.c: applied patch from Marius Konitzer to avoid
|
||||||
|
@ -4807,6 +4807,11 @@ xmlFAParseCharRange(xmlRegParserCtxtPtr ctxt) {
|
|||||||
int start = -1;
|
int start = -1;
|
||||||
int end = -1;
|
int end = -1;
|
||||||
|
|
||||||
|
if (CUR == '\0') {
|
||||||
|
ERROR("Expecting ']'");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((CUR == '&') && (NXT(1) == '#')) {
|
if ((CUR == '&') && (NXT(1) == '#')) {
|
||||||
end = start = xmlFAParseCharRef(ctxt);
|
end = start = xmlFAParseCharRef(ctxt);
|
||||||
xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg,
|
xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg,
|
||||||
@ -4897,7 +4902,7 @@ xmlFAParsePosCharGroup(xmlRegParserCtxtPtr ctxt) {
|
|||||||
xmlFAParseCharRange(ctxt);
|
xmlFAParseCharRange(ctxt);
|
||||||
}
|
}
|
||||||
} while ((CUR != ']') && (CUR != '^') && (CUR != '-') &&
|
} while ((CUR != ']') && (CUR != '^') && (CUR != '-') &&
|
||||||
(ctxt->error == 0));
|
(CUR != 0) && (ctxt->error == 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user