]> granicus.if.org Git - php/commitdiff
Reduce oniguruma retry limit in fuzzer
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 2 Nov 2019 09:40:41 +0000 (10:40 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 2 Nov 2019 09:40:41 +0000 (10:40 +0100)
For some patterns matching may take quite long even at retry limit
100000 and it seems that this is not easy to fix on the oniguruma
side.

Reduce the retry limit by another factor of 10 in hope of reducing
timeouts.

sapi/fuzzer/fuzzer-sapi.c

index fb552974e8d9864444a50106411509614980b369..5e50e3d1aad65647085950e33efb9af0b7742e37 100644 (file)
@@ -34,9 +34,9 @@ const char HARDCODED_INI[] =
        "implicit_flush=1\n"
        "output_buffering=0\n"
        "error_reporting=0\n"
-       /* Reduce oniguruma limits by a factor of 10 to speed up fuzzing */
+       /* Reduce oniguruma limits to speed up fuzzing */
        "mbstring.regex_stack_limit=10000\n"
-       "mbstring.regex_retry_limit=100000";
+       "mbstring.regex_retry_limit=10000";
 
 static int startup(sapi_module_struct *sapi_module)
 {