about summary refs log tree commit diff
path: root/utils/aflpp_driver
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-12-15 09:29:11 +0100
committerGitHub <noreply@github.com>2023-12-15 09:29:11 +0100
commit108fb0b29ad1586e668ba23e23a0eb1a13c45c49 (patch)
tree28a5f5091317e9cb7d9151e53f33c7b56cec552b /utils/aflpp_driver
parentef706ad668b36e65d24f352f5bcee22957f5f1cc (diff)
parent8a7705aedbb759dd8ff331d47a99cc6bbc17902b (diff)
downloadafl++-108fb0b29ad1586e668ba23e23a0eb1a13c45c49.tar.gz
Merge pull request #1933 from AFLplusplus/dev v4.09c
push to stable
Diffstat (limited to 'utils/aflpp_driver')
-rw-r--r--utils/aflpp_driver/aflpp_driver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/aflpp_driver/aflpp_driver.c b/utils/aflpp_driver/aflpp_driver.c
index dab7fd95..9ffb2383 100644
--- a/utils/aflpp_driver/aflpp_driver.c
+++ b/utils/aflpp_driver/aflpp_driver.c
@@ -292,6 +292,7 @@ __attribute__((weak)) int main(int argc, char **argv) {
         "afl-fuzz will run N iterations before re-spawning the process "
         "(default: "
         "INT_MAX)\n"
+        "You can also use AFL_FUZZER_LOOPCOUNT to set N\n"
         "For stdin input processing, pass '-' as single command line option.\n"
         "For file input processing, pass '@@' as single command line option.\n"
         "To use with afl-cmin or afl-cmin.bash pass '-' as single command line "
@@ -379,6 +380,12 @@ __attribute__((weak)) int LLVMFuzzerRunDriver(
 
   }
 
+  if (getenv("AFL_FUZZER_LOOPCOUNT")) {
+
+    N = atoi(getenv("AFL_FUZZER_LOOPCOUNT"));
+
+  }
+
   assert(N > 0);
 
   __afl_manual_init();