diff options
author | vanhauser-thc <vh@thc.org> | 2022-04-08 22:44:10 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-04-08 22:44:10 +0200 |
commit | e9288bcfad6e350b6f3e85d45a42bae5aea480c1 (patch) | |
tree | 23a4b94f81bc41dfae44bcd1598cd2b61ff17283 /src/afl-fuzz-bitmap.c | |
parent | 891f4d3c8e58ed06b0131673f9c58606f5d99978 (diff) | |
download | afl++-e9288bcfad6e350b6f3e85d45a42bae5aea480c1.tar.gz |
add AFL_KEEP_TIMEOUTS
Diffstat (limited to 'src/afl-fuzz-bitmap.c')
-rw-r--r-- | src/afl-fuzz-bitmap.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c index 0f6f0778..7c2b35d6 100644 --- a/src/afl-fuzz-bitmap.c +++ b/src/afl-fuzz-bitmap.c @@ -664,8 +664,16 @@ save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) { if (afl->stop_soon || new_fault != FSRV_RUN_TMOUT) { - ++afl->saved_tmouts; - goto save_to_queue; + if (afl->afl_env.afl_keep_timeouts) { + + ++afl->saved_tmouts; + goto save_to_queue; + + } else { + + return keeping; + + } } |