com php-src: Reduce oniguruma retry limit in fuzzer: sapi/fuzzer/fuzzer-sapi.c
| From: | Nikita Popov | Date: | Sat, 02 Nov 2019 09:40:41 +0000 |
| Subject: | com php-src: Reduce oniguruma retry limit in fuzzer: sapi/fuzzer/fuzzer-sapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109171@lists.php.net to get a copy of this message | ||
Commit: 991a0250b572098796d15ab7608af359cb7ef556
Author: Nikita Popov <nikita.ppv@gmail.com> Sat, 2 Nov 2019 10:40:41 +0100
Parents: 21eddde3fd06e67726b637354b28149720e4a445
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=991a0250b572098796d15ab7608af359cb7ef556
Log:
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.
Changed paths:
M sapi/fuzzer/fuzzer-sapi.c
Diff:
diff --git a/sapi/fuzzer/fuzzer-sapi.c b/sapi/fuzzer/fuzzer-sapi.c
index fb552974e8d..5e50e3d1aad 100644
--- a/sapi/fuzzer/fuzzer-sapi.c
+++ b/sapi/fuzzer/fuzzer-sapi.c
@@ -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)
{