AFL_CUSTOM_MUTATOR_LATE_SEND added

This commit is contained in:
vanhauser-thc
2024-06-27 18:51:54 +02:00
parent e2d30641be
commit ba7313b521
10 changed files with 82 additions and 12 deletions

View File

@ -194,7 +194,17 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) {
if (el->afl_custom_fuzz_send) {
el->afl_custom_fuzz_send(el->data, *mem, new_size);
if (!afl->afl_env.afl_custom_mutator_late_send) {
el->afl_custom_fuzz_send(el->data, *mem, new_size);
} else {
afl->fsrv.custom_input = *mem;
afl->fsrv.custom_input_len = new_size;
}
sent = 1;
}