mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-22 22:28:49 +00:00
add AFL_KEEP_TIMEOUTS
This commit is contained in:
@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -222,6 +222,13 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
|
||||
afl->afl_env.afl_hang_tmout =
|
||||
(u8 *)get_afl_env(afl_environment_variables[i]);
|
||||
|
||||
} else if (!strncmp(env, "AFL_KEEP_TIMEOUTS",
|
||||
|
||||
afl_environment_variable_len)) {
|
||||
|
||||
afl->afl_env.afl_keep_timeouts =
|
||||
get_afl_env(afl_environment_variables[i]) ? 1 : 0;
|
||||
|
||||
} else if (!strncmp(env, "AFL_SKIP_BIN_CHECK",
|
||||
|
||||
afl_environment_variable_len)) {
|
||||
|
Reference in New Issue
Block a user