about summary refs log tree commit diff
path: root/src/afl-fuzz-one.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-12-03 19:22:44 +0100
committerDominik Maier <domenukk@gmail.com>2020-12-04 14:26:47 +0100
commita19b3022d93195d3703817c728817d7e071e89fe (patch)
tree10219b266eb2d055990a45c7312e9e3ffda754f9 /src/afl-fuzz-one.c
parentaca5b55b6d1f2d7079830b805e12d8585e98aa2e (diff)
downloadafl++-a19b3022d93195d3703817c728817d7e071e89fe.tar.gz
afl_custom_describe api added
Diffstat (limited to 'src/afl-fuzz-one.c')
-rw-r--r--src/afl-fuzz-one.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index 0adc3719..ca48f72a 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -1790,11 +1790,16 @@ custom_mutator_stage:
 
       afl->current_custom_fuzz = el;
 
-      if (el->afl_custom_fuzz_count)
+      if (el->afl_custom_fuzz_count) {
+
         afl->stage_max = el->afl_custom_fuzz_count(el->data, out_buf, len);
-      else
+
+      } else {
+
         afl->stage_max = saved_max;
 
+      }
+
       has_custom_fuzz = true;
 
       afl->stage_short = el->name_short;