diff options
author | h1994st <h1994st@gmail.com> | 2020-03-02 15:27:29 -0500 |
---|---|---|
committer | h1994st <h1994st@gmail.com> | 2020-03-02 15:27:29 -0500 |
commit | 7b59e05600aff4e9deb3110887d6ad49838f02b0 (patch) | |
tree | 240b3fecfdf8999593cbfba541e3a059f2409a9a /src/afl-fuzz-init.c | |
parent | 95322c11d978ac80d8b841ea8270780fd1b3eb55 (diff) | |
download | afl++-7b59e05600aff4e9deb3110887d6ad49838f02b0.tar.gz |
Add new APIs for the custom mutator
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 632cdf6b..9ae95b7d 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -296,34 +296,6 @@ void setup_post(void) { } -void setup_custom_mutator(void) { - - void* dh; - u8* fn = getenv("AFL_CUSTOM_MUTATOR_LIBRARY"); - - if (!fn) return; - - if (limit_time_sig) - FATAL( - "MOpt and custom mutator are mutually exclusive. We accept pull " - "requests that integrates MOpt with the optional mutators " - "(custom/radamsa/redquenn/...)."); - - ACTF("Loading custom mutator library from '%s'...", fn); - - dh = dlopen(fn, RTLD_NOW); - if (!dh) FATAL("%s", dlerror()); - - custom_mutator = dlsym(dh, "afl_custom_mutator"); - if (!custom_mutator) FATAL("Symbol 'afl_custom_mutator' not found."); - - pre_save_handler = dlsym(dh, "afl_pre_save_handler"); - // if (!pre_save_handler) WARNF("Symbol 'afl_pre_save_handler' not found."); - - OKF("Custom mutator installed successfully."); - -} - /* Shuffle an array of pointers. Might be slightly biased. */ static void shuffle_ptrs(void** ptrs, u32 cnt) { |