diff --git a/sapi/fuzzer/fuzzer-function-jit.c b/sapi/fuzzer/fuzzer-function-jit.c index bd99299984ae4..2510d8b556d03 100644 --- a/sapi/fuzzer/fuzzer-function-jit.c +++ b/sapi/fuzzer/fuzzer-function-jit.c @@ -58,7 +58,8 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) { "zend_extension=%s\n" "opcache.validate_timestamps=0\n" "opcache.file_update_protection=0\n" - "opcache.jit_buffer_size=256M", + "opcache.jit_buffer_size=128M" + "opcache.protect_memory=1", opcache_path); free(opcache_path); diff --git a/sapi/fuzzer/fuzzer-tracing-jit.c b/sapi/fuzzer/fuzzer-tracing-jit.c index 7113bf0796913..437938d090278 100644 --- a/sapi/fuzzer/fuzzer-tracing-jit.c +++ b/sapi/fuzzer/fuzzer-tracing-jit.c @@ -62,12 +62,16 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) { "zend_extension=%s\n" "opcache.validate_timestamps=0\n" "opcache.file_update_protection=0\n" - "opcache.jit_buffer_size=256M\n" + "opcache.memory_consumption=1024\n" + "opcache.jit_buffer_size=128M\n" "opcache.jit_hot_func=1\n" "opcache.jit_hot_loop=1\n" "opcache.jit_hot_return=1\n" "opcache.jit_hot_side_exit=1\n" - "opcache.jit_max_root_traces=32768", + "opcache.jit_max_root_traces=100000\n" + "opcache.jit_max_side_traces=100000\n" + "opcache.jit_max_exit_counters=100000\n" + "opcache.protect_memory=1\n", opcache_path); free(opcache_path);