diff options
author | vanhauser-thc <vh@thc.org> | 2024-06-05 10:40:12 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-06-05 10:40:12 +0200 |
commit | 12a87cfacbe2015e378ebae9cca0923a220d1605 (patch) | |
tree | 457010bc42bce0863497add51d85d7dcbc4c7f3e | |
parent | 2806d6be2f1d26eed7b42ae580f5bf7a29713a01 (diff) | |
download | afl++-12a87cfacbe2015e378ebae9cca0923a220d1605.tar.gz |
nits
-rw-r--r-- | src/afl-fuzz.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 49d25d5a..bc564300 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -2587,7 +2587,7 @@ int main(int argc, char **argv_orig, char **envp) { (!afl->queue_cycle && afl->afl_env.afl_import_first)) && afl->sync_id)) { - if (!afl->queue_cycle && afl->afl_env.afl_import_first) { + if (unlikely(!afl->queue_cycle && afl->afl_env.afl_import_first)) { OKF("Syncing queues from other fuzzer instances first ..."); @@ -2598,6 +2598,12 @@ int main(int argc, char **argv_orig, char **envp) { } ++afl->queue_cycle; + if (afl->afl_env.afl_no_ui) { + + ACTF("Entering queue cycle %llu\n", afl->queue_cycle); + + } + runs_in_current_cycle = (u32)-1; afl->cur_skipped_items = 0; @@ -2606,7 +2612,7 @@ int main(int argc, char **argv_orig, char **envp) { // queue is fully cycled. time_t cursec = time(NULL); struct tm *curdate = localtime(&cursec); - if (likely(!afl->afl_env.afl_pizza_mode)) { + if (unlikely(!afl->afl_env.afl_pizza_mode)) { if (unlikely(curdate->tm_mon == 3 && curdate->tm_mday == 1)) { @@ -2651,13 +2657,6 @@ int main(int argc, char **argv_orig, char **envp) { } - if (unlikely(afl->not_on_tty)) { - - ACTF("Entering queue cycle %llu.", afl->queue_cycle); - fflush(stdout); - - } - /* If we had a full queue cycle with no new finds, try recombination strategies next. */ |