1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

regexp: Fix null deref in xmlFAFinishReduceEpsilonTransitions

Short-lived regression found by OSS-Fuzz.
This commit is contained in:
Nick Wellnhofer 2023-05-04 12:47:00 +02:00
parent 8d5e33ef3e
commit a800b7e058

View File

@ -1871,6 +1871,8 @@ xmlFAFinishReduceEpsilonTransitions(xmlRegParserCtxtPtr ctxt, int tonr) {
xmlRegStatePtr to;
to = ctxt->states[tonr];
if (to == NULL)
return;
if ((to->mark == XML_REGEXP_MARK_START) ||
(to->mark == XML_REGEXP_MARK_NORMAL))
return;