mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
Report error for invalid regexp quantifiers
This commit is contained in:
@ -5268,6 +5268,9 @@ xmlFAParseQuantifier(xmlRegParserCtxtPtr ctxt) {
|
|||||||
cur = xmlFAParseQuantExact(ctxt);
|
cur = xmlFAParseQuantExact(ctxt);
|
||||||
if (cur >= 0)
|
if (cur >= 0)
|
||||||
min = cur;
|
min = cur;
|
||||||
|
else {
|
||||||
|
ERROR("Improper quantifier");
|
||||||
|
}
|
||||||
if (CUR == ',') {
|
if (CUR == ',') {
|
||||||
NEXT;
|
NEXT;
|
||||||
if (CUR == '}')
|
if (CUR == '}')
|
||||||
|
Reference in New Issue
Block a user