Skip to content

Commit 991a025

Browse files
committed
Reduce oniguruma retry limit in fuzzer
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.
1 parent 21eddde commit 991a025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sapi/fuzzer/fuzzer-sapi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ const char HARDCODED_INI[] =
3434
"implicit_flush=1\n"
3535
"output_buffering=0\n"
3636
"error_reporting=0\n"
37-
/* Reduce oniguruma limits by a factor of 10 to speed up fuzzing */
37+
/* Reduce oniguruma limits to speed up fuzzing */
3838
"mbstring.regex_stack_limit=10000\n"
39-
"mbstring.regex_retry_limit=100000";
39+
"mbstring.regex_retry_limit=10000";
4040

4141
static int startup(sapi_module_struct *sapi_module)
4242
{

0 commit comments

Comments
 (0)