mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
Fix NULL pointer deref in xmlFAParseCharClassEsc
Found with libFuzzer.
This commit is contained in:
@ -4881,7 +4881,8 @@ xmlFAParseCharClassEsc(xmlRegParserCtxtPtr ctxt) {
|
|||||||
}
|
}
|
||||||
NEXT;
|
NEXT;
|
||||||
xmlFAParseCharProp(ctxt);
|
xmlFAParseCharProp(ctxt);
|
||||||
ctxt->atom->neg = 1;
|
if (ctxt->atom != NULL)
|
||||||
|
ctxt->atom->neg = 1;
|
||||||
if (CUR != '}') {
|
if (CUR != '}') {
|
||||||
ERROR("Expecting '}'");
|
ERROR("Expecting '}'");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user