From 2f95af996fc5dee9e445faa10473cdfcc1bc7640 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 4 Sep 2020 10:15:55 +0200 Subject: [PATCH] Disable InfiniteIterator class while fuzzing The combination of LimitIterator and InfiniteIterator can cause effectively infinite loops that bypass the executor step limit. --- sapi/fuzzer/fuzzer-sapi.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.50.1