diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-12-04 14:52:11 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-12-04 14:52:11 +0100 |
commit | eb85ded6ee3c22bcf2ba7a9c3ea84930c665d662 (patch) | |
tree | ff4f5839a1eafc567105dbd593032db0ab518714 /src/afl-fuzz-one.c | |
parent | c18ca63519c19aae359ba34923551ee487888071 (diff) | |
parent | 1dbefc14eae4f7a189851785aa3f0982af4236f2 (diff) | |
download | afl++-eb85ded6ee3c22bcf2ba7a9c3ea84930c665d662.tar.gz |
Merge branch 'custom_describe' into dev
Diffstat (limited to 'src/afl-fuzz-one.c')
-rw-r--r-- | src/afl-fuzz-one.c | 9 |
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; |