fix -E/-V

This commit is contained in:
van Hauser
2020-04-11 09:16:30 +02:00
parent d8947d1fa4
commit cc3ac932d9
2 changed files with 27 additions and 31 deletions

View File

@ -215,6 +215,28 @@ void show_stats(afl_state_t *afl) {
cur_ms = get_cur_time();
if (afl->most_time_key) {
if (afl->most_time * 1000 < cur_ms - afl->start_time) {
afl->most_time_key = 2;
afl->stop_soon = 2;
}
}
if (afl->most_execs_key == 1) {
if (afl->most_execs <= afl->total_execs) {
afl->most_execs_key = 2;
afl->stop_soon = 2;
}
}
/* If not enough time has passed since last UI update, bail out. */
if (cur_ms - afl->stats_last_ms < 1000 / UI_TARGET_HZ &&