Skip to content

Commit

Permalink
Disable InfiniteIterator class while fuzzing
Browse files Browse the repository at this point in the history
The combination of LimitIterator and InfiniteIterator can cause
effectively infinite loops that bypass the executor step limit.
  • Loading branch information
nikic committed Sep 4, 2020
1 parent 56a9eed commit 2f95af9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sapi/fuzzer/fuzzer-sapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f95af9

Please sign in to comment.