add AFL_TRY_AFFINITY

This commit is contained in:
vanhauser-thc
2021-05-25 10:45:24 +02:00
parent 8e75adfee5
commit 87b16c4460
9 changed files with 46 additions and 17 deletions

View File

@ -202,6 +202,13 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
afl->afl_env.afl_no_affinity =
get_afl_env(afl_environment_variables[i]) ? 1 : 0;
} else if (!strncmp(env, "AFL_TRY_AFFINITY",
afl_environment_variable_len)) {
afl->afl_env.afl_try_affinity =
get_afl_env(afl_environment_variables[i]) ? 1 : 0;
} else if (!strncmp(env, "AFL_SKIP_CRASHES",
afl_environment_variable_len)) {