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 15:41:24 +0100
committerDominik Maier <domenukk@gmail.com>2020-12-04 15:41:24 +0100
commit1aebbd7490b39a39c31d473af536b7f932412cb6 (patch)
tree3b75a5a065efc2d363b3303c9f84cc11cfab1eb4 /src/afl-fuzz-one.c
parent330f33a4356f46f25d0930aa61ef18c78a559fea (diff)
parent3d233b34b88dc49b33e4d1f91668194c6f59637a (diff)
downloadafl++-1aebbd7490b39a39c31d473af536b7f932412cb6.tar.gz
Merge branch 'dev' of github.com:aflplusplus/aflplusplus 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;