Update afl-fuzz-python.c

Fix havoc_mutations not working in python version
This commit is contained in:
wxyxsx 2021-08-10 11:14:55 +08:00 committed by GitHub
parent 32a0d6ac31
commit 50fc76faa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;