diff options
author | vanhauser-thc <vh@thc.org> | 2022-02-05 10:36:37 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-02-05 10:36:37 +0100 |
commit | fa3c0d8a3756c1d80356690796877d94959f305c (patch) | |
tree | a8e269f7da6bd6505fb0a55b07d2c77cb4ee39ed /src/afl-fuzz-state.c | |
parent | d5b9cd4b73253c2fbbc7da88015ae0eac303eb32 (diff) | |
download | afl++-fa3c0d8a3756c1d80356690796877d94959f305c.tar.gz |
change -y to -g/-G and add env var alternatives
Diffstat (limited to 'src/afl-fuzz-state.c')
-rw-r--r-- | src/afl-fuzz-state.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c index 24bd28dd..115e62de 100644 --- a/src/afl-fuzz-state.c +++ b/src/afl-fuzz-state.c @@ -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 { |