aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-06-09 09:33:33 +0200
committervanhauser-thc <vh@thc.org>2023-06-09 09:33:33 +0200
commit6ec70fc0847a0624692e868743080bf4e6935523 (patch)
tree6b82ab337f0604f6aceef85ff3219ae432119945 /src
parent31e2c6c2b479507c659e5a433e1dc166f7c92563 (diff)
downloadafl++-6ec70fc0847a0624692e868743080bf4e6935523.tar.gz
binary mutations
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-one.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index e722f0c6..816384fd 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -2085,6 +2085,8 @@ havoc_stage:
u32 *mutation_array;
u32 stack_max, rand_max; // stack_max_pow = afl->havoc_stack_pow2;
+ /*
+
if (unlikely(afl->expand_havoc && afl->ready_for_splicing_count > 1)) {
mutation_array = full_splice_array;
@@ -2097,6 +2099,8 @@ havoc_stage:
}
+ */
+
/*
if (unlikely(afl->text_input || afl->queue_cur->is_ascii)) { // is text?
@@ -2112,15 +2116,21 @@ havoc_stage:
} else { // is binary!
- if (likely(afl->fuzz_mode == 0)) { // is exploration?
+ */
- mutation_array = (unsigned int *)&mutation_strategy_exploration_binary;
+ rand_max = MUT_STRATEGY_ARRAY_SIZE;
- } else { // is exploitation!
+ if (likely(afl->fuzz_mode == 0)) { // is exploration?
- mutation_array = (unsigned int *)&mutation_strategy_exploitation_binary;
+ mutation_array = (unsigned int *)&mutation_strategy_exploration_binary;
- }
+ } else { // is exploitation!
+
+ mutation_array = (unsigned int *)&mutation_strategy_exploitation_binary;
+
+ }
+
+ /*
}