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:
parent
8d5e33ef3e
commit
a800b7e058
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user