mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
Fix exit on time.
This commit is contained in:
@ -669,9 +669,15 @@ void show_stats_normal(afl_state_t *afl) {
|
|||||||
|
|
||||||
/* AFL_EXIT_ON_TIME. */
|
/* AFL_EXIT_ON_TIME. */
|
||||||
|
|
||||||
if (unlikely(afl->last_find_time && !afl->non_instrumented_mode &&
|
/* If no coverage was found yet, check whether run time is greater than
|
||||||
afl->afl_env.afl_exit_on_time &&
|
* exit_on_time. */
|
||||||
(cur_ms - afl->last_find_time) > afl->exit_on_time)) {
|
|
||||||
|
if (unlikely(
|
||||||
|
!afl->non_instrumented_mode && afl->afl_env.afl_exit_on_time &&
|
||||||
|
((afl->last_find_time &&
|
||||||
|
(cur_ms - afl->last_find_time) > afl->exit_on_time) ||
|
||||||
|
(!afl->last_find_time && (afl->prev_run_time + cur_ms -
|
||||||
|
afl->start_time) > afl->exit_on_time)))) {
|
||||||
|
|
||||||
afl->stop_soon = 2;
|
afl->stop_soon = 2;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user