If the regular expression is invalid and pcre2_compile ends with error,
match_data will remain uninitialized, which in turn leads to crash on
pcre2_match_data_free in RegExp destructor.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3150a4542f
)
pull/312/head
parent
e034c819b9
commit
269661fa81
Loading…
Reference in new issue