diff options
author | van Hauser <vh@thc.org> | 2024-05-13 19:32:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 19:32:44 +0200 |
commit | 0cabc12f91bd6a57b0496d59c137efb5a0247c61 (patch) | |
tree | dceabf0bf8006343c1591135109d0585e2c73463 /src/afl-fuzz-state.c | |
parent | b282ce999d2ab9428210deb0e838f45a6a534084 (diff) | |
parent | c03f2897d081b2bf41e179a48d758f1f400b5929 (diff) | |
download | afl++-0cabc12f91bd6a57b0496d59c137efb5a0247c61.tar.gz |
Merge pull request #2086 from smoelius/dev
Add `AFL_SHA1_FILENAMES` option
Diffstat (limited to 'src/afl-fuzz-state.c')
-rw-r--r-- | src/afl-fuzz-state.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c index 543fdc1c..74edaddf 100644 --- a/src/afl-fuzz-state.c +++ b/src/afl-fuzz-state.c @@ -626,6 +626,13 @@ void read_afl_environment(afl_state_t *afl, char **envp) { } + } else if (!strncmp(env, "AFL_SHA1_FILENAMES", + + afl_environment_variable_len)) { + + afl->afl_env.afl_sha1_filenames = + get_afl_env(afl_environment_variables[i]) ? 1 : 0; + } } else { |