Define AFL_CRASHING_SEEDS_AS_NEW_CRASH as env variable

- and fix typo

Signed-off-by: Junwha <qbit@unist.ac.kr>
This commit is contained in:
Junwha
2023-08-04 18:36:58 +09:00
parent a61e1ffe4d
commit fcdfe9e990
4 changed files with 26 additions and 18 deletions

View File

@ -200,6 +200,13 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
afl->afl_env.afl_exit_on_time =
(u8 *)get_afl_env(afl_environment_variables[i]);
} else if (!strncmp(env, "AFL_CRASHING_SEEDS_AS_NEW_CRASH",
afl_environment_variable_len)) {
afl->afl_env.afl_crashing_seeds_as_new_crash =
atoi((u8 *)get_afl_env(afl_environment_variables[i]));
} else if (!strncmp(env, "AFL_NO_AFFINITY",
afl_environment_variable_len)) {