about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-08-10 09:54:17 +0200
committerGitHub <noreply@github.com>2021-08-10 09:54:17 +0200
commit781e65ea429789bbd9a8ea34417d98babc65a124 (patch)
tree25aa42ff58d1b361dd7905666c64bb7794c89bdf /src
parentb6b4ab0bd8e42fbfd0b24d1172172950fc76724b (diff)
parent50fc76faa86c7e2cc6523af141f3596bc2af2364 (diff)
downloadafl++-781e65ea429789bbd9a8ea34417d98babc65a124.tar.gz
Merge pull request #1063 from wxyxsx/stable
Fix "havoc_mutations" not working in Python module
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-python.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c
index bb4eabcc..e1c879f4 100644
--- a/src/afl-fuzz-python.c
+++ b/src/afl-fuzz-python.c
@@ -445,6 +445,10 @@ struct custom_mutator *load_custom_mutator_py(afl_state_t *afl,
 
   /* Initialize the custom mutator */
   init_py(afl, py_mutator, rand_below(afl, 0xFFFFFFFF));
+  
+  mutator->stacked_custom = (mutator && mutator->afl_custom_havoc_mutation);
+  mutator->stacked_custom_prob =
+      6;  // like one of the default mutations in havoc
 
   return mutator;