]> granicus.if.org Git - php/commitdiff
Disable InfiniteIterator class while fuzzing
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Sep 2020 08:15:55 +0000 (10:15 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Sep 2020 08:59:55 +0000 (10:59 +0200)
The combination of LimitIterator and InfiniteIterator can cause
effectively infinite loops that bypass the executor step limit.

sapi/fuzzer/fuzzer-sapi.c

index 3ef0f5fe4ae06bf7690e0c14c2d19ae3bccfb546..fd429f503e7ebeeaaa4255e642c33ad0ec61d643 100644 (file)
@@ -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)