From 50fc76faa86c7e2cc6523af141f3596bc2af2364 Mon Sep 17 00:00:00 2001 From: wxyxsx Date: Tue, 10 Aug 2021 11:14:55 +0800 Subject: Update afl-fuzz-python.c Fix havoc_mutations not working in python version --- src/afl-fuzz-python.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/afl-fuzz-python.c') diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c index 3aa97635..bc481b49 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; -- cgit 1.4.1