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