diff options
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r-- | src/afl-fuzz-stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index e03018a1..0885c906 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -274,10 +274,10 @@ void show_stats(afl_state_t *afl) { /* Honor AFL_EXIT_WHEN_DONE and AFL_BENCH_UNTIL_CRASH. */ if (!afl->dumb_mode && afl->cycles_wo_finds > 100 && - !afl->pending_not_fuzzed && get_afl_env("AFL_EXIT_WHEN_DONE")) + !afl->pending_not_fuzzed && afl->afl_env.afl_exit_when_done) afl->stop_soon = 2; - if (afl->total_crashes && get_afl_env("AFL_BENCH_UNTIL_CRASH")) + if (afl->total_crashes && afl->afl_env.afl_bench_until_crash) afl->stop_soon = 2; /* If we're not on TTY, bail out. */ @@ -860,7 +860,7 @@ void show_init_stats(afl_state_t *afl) { /* In dumb mode, re-running every timing out test case with a generous time limit is very expensive, so let's select a more conservative default. */ - if (afl->dumb_mode && !get_afl_env("AFL_HANG_TMOUT")) + if (afl->dumb_mode && !(afl->afl_env.afl_hang_tmout)) afl->hang_tmout = MIN(EXEC_TIMEOUT, afl->fsrv.exec_tmout * 2 + 100); OKF("All set and ready to roll!"); |