about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-12-19 11:15:33 +0100
committervanhauser-thc <vh@thc.org>2023-12-19 11:15:33 +0100
commit806a76afaeb1e1c99847df95af4181b3d1b48a91 (patch)
tree177a6ff66695a8158699ab95520d30ab4acdbb86
parentf822cdeb747fb7aad8be7a9d9472331e36f3dd83 (diff)
downloadafl++-806a76afaeb1e1c99847df95af4181b3d1b48a91.tar.gz
fix bad fix for MUT_STRATEGY_ARRAY_SIZE
-rw-r--r--docs/Changelog.md7
-rw-r--r--include/afl-mutations.h3
2 files changed, 7 insertions, 3 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md
index 150ce6c7..133e460b 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -4,8 +4,11 @@
   release of the tool. See README.md for the general instruction manual.
 
 ### Version ++4.10a (dev)
-  - default power schedule is now EXPLORE, due a fix in fast schedules
-    explore is slightly better now.
+  - afl-fuzz:
+    - default power schedule is now EXPLORE, due a fix in fast schedules
+      explore is slightly better now.
+    - fixed minor issues in the mutation engine, thanks to @futhewo for
+      reporting!
 
 
 ### Version ++4.09c (release)
diff --git a/include/afl-mutations.h b/include/afl-mutations.h
index dcc62d0b..75e66484 100644
--- a/include/afl-mutations.h
+++ b/include/afl-mutations.h
@@ -32,7 +32,7 @@
 #include <inttypes.h>
 #include "afl-fuzz.h"
 
-#define MUT_STRATEGY_ARRAY_SIZE 255
+#define MUT_STRATEGY_ARRAY_SIZE 256
 
 enum {
 
@@ -1082,6 +1082,7 @@ u32 mutation_strategy_exploration_binary[MUT_STRATEGY_ARRAY_SIZE] = {
     MUT_CLONE_COPY,
     MUT_CLONE_COPY,
     MUT_CLONE_COPY,
+    MUT_CLONE_COPY,
     MUT_CLONE_FIXED,
     MUT_CLONE_FIXED,
     MUT_CLONE_FIXED,