diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-05-04 12:47:00 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-05-04 12:47:00 +0200 |
commit | a800b7e058b09031aba92949eecf2c76fa030635 (patch) | |
tree | ecb2c08cc4c959c682c66172c8e1fc4d4a8d8dee | |
parent | 8d5e33ef3e1b66b4f012b602335c7c1d5bc25f2d (diff) | |
download | libxml2-a800b7e058b09031aba92949eecf2c76fa030635.tar.gz |
regexp: Fix null deref in xmlFAFinishReduceEpsilonTransitions
Short-lived regression found by OSS-Fuzz.
-rw-r--r-- | xmlregexp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlregexp.c b/xmlregexp.c index 3fb7e0cf..a572cf8c 100644 --- a/xmlregexp.c +++ b/xmlregexp.c @@ -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; |