Skip to content

Commit 2f95af9

Browse files
committed
Disable InfiniteIterator class while fuzzing
The combination of LimitIterator and InfiniteIterator can cause effectively infinite loops that bypass the executor step limit.
1 parent 56a9eed commit 2f95af9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sapi/fuzzer/fuzzer-sapi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ const char HARDCODED_INI[] =
5656
",crypt"
5757
/* openlog() has a known memory-management issue. */
5858
",openlog"
59+
/* Can cause long loops that bypass the executor step limit. */
60+
"\ndisable_classes=InfiniteIterator"
5961
;
6062

6163
static int startup(sapi_module_struct *sapi_module)

0 commit comments

Comments
 (0)