diff options
author | van Hauser <vh@thc.org> | 2021-08-10 09:54:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 09:54:17 +0200 |
commit | 781e65ea429789bbd9a8ea34417d98babc65a124 (patch) | |
tree | 25aa42ff58d1b361dd7905666c64bb7794c89bdf /src | |
parent | b6b4ab0bd8e42fbfd0b24d1172172950fc76724b (diff) | |
parent | 50fc76faa86c7e2cc6523af141f3596bc2af2364 (diff) | |
download | afl++-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.c | 4 |
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; |