diff options
author | van Hauser <vh@thc.org> | 2021-11-07 14:09:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-07 14:09:09 +0100 |
commit | fb443eaf2372ccd1825699c978fd0d662155fb9e (patch) | |
tree | ff019fc0b0704c16d68655d0f3864ec4cda49d30 /src/afl-fuzz.c | |
parent | 5b06413a5f109f310a62e36111a18d7325b246c3 (diff) | |
parent | 2ddbaa439ca78b0ae8cc6691d9657f5783b2d5e8 (diff) | |
download | afl++-fb443eaf2372ccd1825699c978fd0d662155fb9e.tar.gz |
Merge pull request #1141 from AFLplusplus/afl4
cmplog enhancement variant
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index a4093693..c08b8fbb 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -2235,13 +2235,12 @@ int main(int argc, char **argv_orig, char **envp) { } - write_bitmap(afl); - save_auto(afl); - stop_fuzzing: afl->force_ui_update = 1; // ensure the screen is reprinted show_stats(afl); // print the screen one last time + write_bitmap(afl); + save_auto(afl); SAYF(CURSOR_SHOW cLRD "\n\n+++ Testing aborted %s +++\n" cRST, afl->stop_soon == 2 ? "programmatically" : "by user"); @@ -2270,6 +2269,20 @@ stop_fuzzing: } + if (afl->not_on_tty) { + + u32 t_bytes = count_non_255_bytes(afl, afl->virgin_bits); + u8 time_tmp[64]; + u_stringify_time_diff(time_tmp, get_cur_time(), afl->start_time); + ACTF( + "Statistics: %u new paths found, %.02f%% coverage achieved, %llu " + "crashes found, %llu timeouts found, total runtime %s", + afl->queued_discovered, + ((double)t_bytes * 100) / afl->fsrv.real_map_size, afl->unique_crashes, + afl->unique_hangs, time_tmp); + + } + #ifdef PROFILING SAYF(cYEL "[!] " cRST "Profiling information: %llu ms total work, %llu ns/run\n", |