diff options
author | Cornelius Aschermann <eqv@fb.com> | 2024-05-15 17:09:05 -0700 |
---|---|---|
committer | Cornelius Aschermann <eqv@fb.com> | 2024-05-17 14:33:32 -0700 |
commit | 6dd5e931fcd50908ff3c02f31e49f8cd751eaff3 (patch) | |
tree | 8a0aca06702fd8cac1ca78ebe0148709740184cf /src/afl-fuzz.c | |
parent | 1db3b81d2eb855167dcf65734f8833a2329609da (diff) | |
download | afl++-6dd5e931fcd50908ff3c02f31e49f8cd751eaff3.tar.gz |
Fix runtime underflow & -V exiting before syncing
print_stats sets exit_soon even while syncing, this leaves -V 0 still broken, as we don't finish syncing. Additionally, the change that introduced the previous -V fix also broke the runtime tracking, as runtime needs to include all time including sync, splice etc. This caused an underflow in the reported runtime.
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 1f0037ba..cf3940f1 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -1806,7 +1806,7 @@ int main(int argc, char **argv_orig, char **envp) { afl->fsrv.use_fauxsrv = afl->non_instrumented_mode == 1 || afl->no_forkserver; afl->fsrv.max_length = afl->max_length; - + #ifdef __linux__ if (!afl->fsrv.nyx_mode) { @@ -2593,14 +2593,6 @@ int main(int argc, char **argv_orig, char **envp) { } sync_fuzzers(afl); - - if (!afl->queue_cycle && afl->afl_env.afl_import_first) { - - // real start time, we reset, so this works correctly with -V - afl->start_time = get_cur_time(); - - } - } ++afl->queue_cycle; @@ -3115,4 +3107,3 @@ stop_fuzzing: } #endif /* !AFL_LIB */ - |