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

View File

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