aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-06-06 13:12:31 +0200
committervanhauser-thc <vh@thc.org>2023-06-06 13:12:31 +0200
commit8de7f6131d48e27d53e894b65bd11e0dc3817639 (patch)
tree8dc1fd271e1d5bf9b6981774a5d1e172ed7fa02b /src
parent9a55bbdb44c1508a0b08728db2dacaebc9c43277 (diff)
downloadafl++-8de7f6131d48e27d53e894b65bd11e0dc3817639.tar.gz
add current mutation strategy to include
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-one.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index f5ddea0e..312e180d 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -2076,7 +2076,7 @@ havoc_stage:
where we take the input file and make random stacked tweaks. */
u32 *mutation_array;
- u32 stack_max, stack_max_pow = afl->havoc_stack_pow2;
+ u32 stack_max; // stack_max_pow = afl->havoc_stack_pow2;
if (unlikely(afl->text_input || afl->queue_cur->is_ascii)) { // is text?
@@ -2104,6 +2104,7 @@ havoc_stage:
}
+ /*
if (temp_len < 64) {
--stack_max_pow;
@@ -2118,7 +2119,9 @@ havoc_stage:
}
- stack_max = 1 << stack_max_pow;
+ */
+
+ stack_max = 1 << (1 + rand_below(afl, afl->havoc_stack_pow2));
// + (afl->extras_cnt ? 2 : 0) + (afl->a_extras_cnt ? 2 : 0);