diff options
author | vanhauser-thc <vh@thc.org> | 2023-12-14 16:04:00 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-12-14 16:04:00 +0100 |
commit | ae9cdb34e4fdc10c7c2d1c775238a7501fda288a (patch) | |
tree | be4700672419690cdd3950f6d0aebe6f437acc83 /utils/aflpp_driver/aflpp_driver.c | |
parent | f290bdd83ba1b540396db2215d133e5a40570419 (diff) | |
download | afl++-ae9cdb34e4fdc10c7c2d1c775238a7501fda288a.tar.gz |
AFL_FUZZER_LOOPCOUNT
Diffstat (limited to 'utils/aflpp_driver/aflpp_driver.c')
-rw-r--r-- | utils/aflpp_driver/aflpp_driver.c | 7 |
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(); |