mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
Merge pull request #1141 from AFLplusplus/afl4
cmplog enhancement variant
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user