diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-07-02 11:51:31 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-07-02 11:54:28 +0200 |
commit | f8329fdc234a43b858271acc75ea70881e35fcae (patch) | |
tree | 2dd509afecb5bc5176980113dfb13ffad9201b5a /xmlregexp.c | |
parent | 13ba5b619a153f240320eb92b59158d657bdeb3a (diff) | |
download | libxml2-f8329fdc234a43b858271acc75ea70881e35fcae.tar.gz |
Report error for invalid regexp quantifiers
Diffstat (limited to 'xmlregexp.c')
-rw-r--r-- | xmlregexp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmlregexp.c b/xmlregexp.c index 0272dcab..687290e2 100644 --- a/xmlregexp.c +++ b/xmlregexp.c @@ -5268,6 +5268,9 @@ xmlFAParseQuantifier(xmlRegParserCtxtPtr ctxt) { cur = xmlFAParseQuantExact(ctxt); if (cur >= 0) min = cur; + else { + ERROR("Improper quantifier"); + } if (CUR == ',') { NEXT; if (CUR == '}') |