mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
Support multiple custom mutators (#282)
* Make a list of custom mutators using env variable * Set up multiple custom mutators * Add destroy custom mutator and changes to load_custom_mutator * Use array instead of list, make changes to afl-fuzz-one for multiple mutators * Make change to fuzz-one custom_queue_get to support multiple mutators * Modify custom python mutator support * Fix bug * Fix missing afl->mutator->data * Revert to list with max count * Change custom_pre_save hook and code format * Free custom_mutator struct in the list * Add testcase for multiple custom mutators * Resolve merge conflict
This commit is contained in:
@ -1077,7 +1077,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
setup_dirs_fds(afl);
|
||||
|
||||
setup_custom_mutator(afl);
|
||||
setup_custom_mutators(afl);
|
||||
|
||||
setup_cmdline_file(afl, argv + optind);
|
||||
|
||||
@ -1365,7 +1365,7 @@ stop_fuzzing:
|
||||
fclose(afl->fsrv.plot_file);
|
||||
destroy_queue(afl);
|
||||
destroy_extras(afl);
|
||||
destroy_custom_mutator(afl);
|
||||
destroy_custom_mutators(afl);
|
||||
afl_shm_deinit(&afl->shm);
|
||||
afl_fsrv_deinit(&afl->fsrv);
|
||||
if (afl->orig_cmdline) { ck_free(afl->orig_cmdline); }
|
||||
|
Reference in New Issue
Block a user