change -y to -g/-G and add env var alternatives

This commit is contained in:
vanhauser-thc
2022-02-05 10:36:37 +01:00
parent d5b9cd4b73
commit fa3c0d8a37
4 changed files with 34 additions and 29 deletions

View File

@ -482,6 +482,20 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
afl->afl_env.afl_target_env =
(u8 *)get_afl_env(afl_environment_variables[i]);
} else if (!strncmp(env, "AFL_INPUT_LEN_MIN",
afl_environment_variable_len)) {
afl->min_length = atoi(
(u8 *)get_afl_env(afl_environment_variables[i]));
} else if (!strncmp(env, "AFL_INPUT_LEN_MAX",
afl_environment_variable_len)) {
afl->max_length = atoi(
(u8 *)get_afl_env(afl_environment_variables[i]));
}
} else {