1
0
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:
Nick Wellnhofer
2017-07-04 17:13:06 +02:00
parent 52ceced6e7
commit 8a0c66986e

View File

@ -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;