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-04 14:52:11 +0100
committerDominik Maier <domenukk@gmail.com>2020-12-04 14:52:11 +0100
commiteb85ded6ee3c22bcf2ba7a9c3ea84930c665d662 (patch)
treeff4f5839a1eafc567105dbd593032db0ab518714 /src/afl-fuzz-one.c
parentc18ca63519c19aae359ba34923551ee487888071 (diff)
parent1dbefc14eae4f7a189851785aa3f0982af4236f2 (diff)
downloadafl++-eb85ded6ee3c22bcf2ba7a9c3ea84930c665d662.tar.gz
Merge branch 'custom_describe' into dev
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;