From: Nikita Popov Date: Fri, 4 Sep 2020 08:15:55 +0000 (+0200) Subject: Disable InfiniteIterator class while fuzzing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f95af996fc5dee9e445faa10473cdfcc1bc7640;p=php Disable InfiniteIterator class while fuzzing The combination of LimitIterator and InfiniteIterator can cause effectively infinite loops that bypass the executor step limit. --- diff --git a/sapi/fuzzer/fuzzer-sapi.c b/sapi/fuzzer/fuzzer-sapi.c index 3ef0f5fe4a..fd429f503e 100644 --- a/sapi/fuzzer/fuzzer-sapi.c +++ b/sapi/fuzzer/fuzzer-sapi.c @@ -56,6 +56,8 @@ const char HARDCODED_INI[] = ",crypt" /* openlog() has a known memory-management issue. */ ",openlog" + /* Can cause long loops that bypass the executor step limit. */ + "\ndisable_classes=InfiniteIterator" ; static int startup(sapi_module_struct *sapi_module)