about summary refs log tree commit diff
path: root/src/afl-fuzz-init.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-03-04 18:38:03 +0100
committerGitHub <noreply@github.com>2020-03-04 18:38:03 +0100
commite43473faefffb93c7b3013dc25c07044a7656e7f (patch)
treed386d4f2da9242c97685257529a656373d1dd02c /src/afl-fuzz-init.c
parent05a3418f8668cadd17e32fd89bfcf136faa61f52 (diff)
parent38e7dd2b9efbd9c6cda47774630a82660d3156b3 (diff)
downloadafl++-e43473faefffb93c7b3013dc25c07044a7656e7f.tar.gz
Merge pull request #221 from h1994st/master
Uniform Python and custom mutator API
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r--src/afl-fuzz-init.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index a82fa8f9..08b6de60 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) {