about summary refs log tree commit diff
path: root/src/afl-fuzz-one.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-one.c
parent46ac5590037af101cd17fcdc9b488cfc483523b0 (diff)
downloadafl++-428b88a82a6dd01db8a50e618fe2021bc8215229.tar.gz
added afl_custom_mutator_only
Diffstat (limited to 'src/afl-fuzz-one.c')
-rw-r--r--src/afl-fuzz-one.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index 3928a88f..82643722 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -516,7 +516,14 @@ u8 fuzz_one_original(char** argv) {
 
     stage_finds[STAGE_CUSTOM_MUTATOR] += new_hit_cnt - orig_hit_cnt;
     stage_cycles[STAGE_CUSTOM_MUTATOR] += stage_max;
-    goto abandon_entry;
+
+    if (custom_only) {
+
+      /* Skip other stages */
+      ret_val = 0;
+      goto abandon_entry;
+
+    }
 
   }