mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-25 10:50:08 +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…
x
Reference in New Issue
Block a user