print a completed UI screen on exit without bugs :)

This commit is contained in:
van Hauser
2020-03-15 22:51:22 +01:00
parent bfe076748b
commit 61ba214f19
4 changed files with 32 additions and 11 deletions

View File

@ -1074,7 +1074,7 @@ int main(int argc, char **argv_orig, char **envp) {
skipped_fuzz = fuzz_one(afl);
if (!afl->stop_soon && afl->sync_id && !skipped_fuzz) {
if (!skipped_fuzz && !afl->stop_soon && afl->sync_id) {
if (!(sync_interval_cnt++ % SYNC_INTERVAL)) sync_fuzzers(afl);
@ -1145,6 +1145,9 @@ int main(int argc, char **argv_orig, char **envp) {
stop_fuzzing:
afl->force_ui_update = 1; // ensure the screen is reprinted
show_stats(afl); // print the screen one last time
SAYF(CURSOR_SHOW cLRD "\n\n+++ Testing aborted %s +++\n" cRST,
afl->stop_soon == 2 ? "programmatically" : "by user");