aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-05-05 13:52:54 +0200
committervanhauser-thc <vh@thc.org>2023-05-05 13:53:05 +0200
commit396157dedae2049f830c49eb81ef9617275333ee (patch)
tree947c4a3682bb895b93c812429af7bba5180026e6 /src
parentf516926f006545d45162eaef723d786a427721f8 (diff)
downloadafl++-396157dedae2049f830c49eb81ef9617275333ee.tar.gz
tritondse custom mutator attempt
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-one.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index a9902087..c6e9a295 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -2048,20 +2048,22 @@ custom_mutator_stage:
afl->queue_cur->stats_mutated += afl->stage_max;
#endif
- if (likely(afl->custom_only)) {
+ /****************
+ * RANDOM HAVOC *
+ ****************/
+
+havoc_stage:
+
+ if (unlikely(afl->custom_only)) {
+ /* Force UI update */
+ show_stats(afl);
/* Skip other stages */
ret_val = 0;
goto abandon_entry;
}
- /****************
- * RANDOM HAVOC *
- ****************/
-
-havoc_stage:
-
afl->stage_cur_byte = -1;
/* The havoc stage mutation code is also invoked when splicing files; if the