about summary refs log tree commit diff
path: root/src/afl-fuzz.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-09-16 16:17:16 +0200
committervan Hauser <vh@thc.org>2019-09-16 16:17:16 +0200
commit428b88a82a6dd01db8a50e618fe2021bc8215229 (patch)
tree6b2086be2281bde4a0e1abb51b7d0cfebd6436f0 /src/afl-fuzz.c
parent46ac5590037af101cd17fcdc9b488cfc483523b0 (diff)
downloadafl++-428b88a82a6dd01db8a50e618fe2021bc8215229.tar.gz
added afl_custom_mutator_only
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r--src/afl-fuzz.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 2d16345a..c2e18477 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -622,6 +622,16 @@ int main(int argc, char** argv) {
 
   }
 
+  if (getenv("AFL_CUSTOM_MUTATOR_ONLY")) {
+
+    /* This ensures we don't proceed to havoc/splice */
+    custom_only = 1;
+
+    /* Ensure we also skip all deterministic steps */
+    skip_deterministic = 1;
+
+  }
+
   get_core_count();
 
 #ifdef HAVE_AFFINITY