History log of /PHP-8.1/ext/pcre/tests/preg_replace_callback_fatal_error_leak.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# f4b2497a 07-Sep-2020 Nikita Popov

Allocate temporary PCRE match data using ZMM

Create a separate general context that uses ZMM as allocator and
use it to allocate temporary PCRE match data (there is still one
global

Allocate temporary PCRE match data using ZMM

Create a separate general context that uses ZMM as allocator and
use it to allocate temporary PCRE match data (there is still one
global match data). There is no requirement that the match data
and the compiled regex / match context use the same general context.

This makes sure that we do not leak persistent memory on bailout
and fixes oss-fuzz #25296, on which half the libfuzzer runs
currently get stuck.

show more ...