mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-20 03:52:25 +03:00
applied patch from Richard Jones to for the silent flag on valgrind when
* xstc/Makefile.am doc/examples/Makefile.am Makefile.am: applied patch from Richard Jones to for the silent flag on valgrind when doing "make valgrind" * xmlregexp.c: raise a regexp error when '\' is misused to escape a standard character. Daniel svn path=/trunk/; revision=3606
This commit is contained in:
@@ -4751,6 +4751,8 @@ xmlFAParseCharClassEsc(xmlRegParserCtxtPtr ctxt) {
|
||||
xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg,
|
||||
type, 0, 0, NULL);
|
||||
}
|
||||
} else {
|
||||
ERROR("Wrong escape sequence, misuse of character '\\'");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5307,6 +5309,10 @@ xmlRegexpCompile(const xmlChar *regexp) {
|
||||
if (CUR != 0) {
|
||||
ERROR("xmlFAParseRegExp: extra characters");
|
||||
}
|
||||
if (ctxt->error != 0) {
|
||||
xmlRegFreeParserCtxt(ctxt);
|
||||
return(NULL);
|
||||
}
|
||||
ctxt->end = ctxt->state;
|
||||
ctxt->start->type = XML_REGEXP_START_STATE;
|
||||
ctxt->end->type = XML_REGEXP_FINAL_STATE;
|
||||
|
Reference in New Issue
Block a user