diff options
author | van Hauser <vh@thc.org> | 2020-04-11 08:02:54 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-04-11 08:02:54 +0200 |
commit | 32ba60185eba8a3ae8eeba0b5830d1bb43e38473 (patch) | |
tree | 3b50122786758210b6f309d5facb4a599b814d7a /src/afl-fuzz-mutators.c | |
parent | 8bcfba8231aecc11a3815c74b6c53c86f418ece1 (diff) | |
download | afl++-32ba60185eba8a3ae8eeba0b5830d1bb43e38473.tar.gz |
more refactoring and update changelog
Diffstat (limited to 'src/afl-fuzz-mutators.c')
-rw-r--r-- | src/afl-fuzz-mutators.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-mutators.c b/src/afl-fuzz-mutators.c index a7d7ae18..efb1c117 100644 --- a/src/afl-fuzz-mutators.c +++ b/src/afl-fuzz-mutators.c @@ -34,7 +34,7 @@ void load_custom_mutator_py(afl_state_t *, char *); void setup_custom_mutator(afl_state_t *afl) { /* Try mutator library first */ - u8 *fn = getenv("AFL_CUSTOM_MUTATOR_LIBRARY"); + u8 *fn = afl->afl_env.afl_custom_mutator_library; if (fn) { @@ -52,7 +52,7 @@ void setup_custom_mutator(afl_state_t *afl) { /* Try Python module */ #ifdef USE_PYTHON - u8 *module_name = getenv("AFL_PYTHON_MODULE"); + u8 *module_name = afl->afl_env.afl_python_module; if (module_name) { @@ -67,7 +67,7 @@ void setup_custom_mutator(afl_state_t *afl) { } #else - if (getenv("AFL_PYTHON_MODULE")) + if (afl->afl_env.afl_python_module) FATAL("Your AFL binary was built without Python support"); #endif |