diff options
author | vanhauser-thc <vh@thc.org> | 2023-07-18 09:56:28 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-07-18 09:56:28 +0200 |
commit | 4113b6ccada97c32b3852ece5ffe2fee6dcbc2c8 (patch) | |
tree | 35e997e3711be5b6d8fdbf5424a50df29f731814 /src/afl-fuzz-stats.c | |
parent | 2b8e528a3b5f44df590b8f727983d142857d0433 (diff) | |
download | afl++-4113b6ccada97c32b3852ece5ffe2fee6dcbc2c8.tar.gz |
take care of uninstrumented mode for fuzz state and mode
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r-- | src/afl-fuzz-stats.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index 4013370d..3d0a9b9a 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -37,8 +37,13 @@ char *get_fuzzing_state(afl_state_t *afl) { u64 cur_run_time = cur_ms - afl->start_time; u64 cur_total_run_time = afl->prev_run_time + cur_run_time; - if (unlikely(cur_run_time < 60 * 3 * 1000 || - cur_total_run_time < 60 * 5 * 1000)) { + if (unlikely(afl->non_instrumented_mode)) { + + return fuzzing_state[1]; + + } else if (unlikely(cur_run_time < 60 * 3 * 1000 || + + cur_total_run_time < 60 * 5 * 1000)) { return fuzzing_state[0]; |