You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Store NULL in match_data->subject when subject was NULL.
Previously, match_data->subject would store a pointer to a stack
allocated string, but that pointer would be dangling as soon as
pcre2_match/pcre2_dfa_match returned. These pointers were than memcpy'd
(with a size of 0), which is technically undefined behaviour, despite
ot causing any observable problems, even with valgrind.
(cherry picked from commit d714d98)
Co-authored-by: Nicholas Wilson <[email protected]>
0 commit comments