fixed call of custom mutators

This commit is contained in:
Dominik Maier
2020-03-24 22:40:14 +01:00
committed by van Hauser
parent b1d71136b0
commit 89512d4e05
4 changed files with 10 additions and 10 deletions

View File

@ -218,9 +218,9 @@ void write_to_testcase(afl_state_t *afl, void *mem, u32 len) {
u8 * new_data;
size_t new_size =
afl->mutator->afl_custom_pre_save(afl, mem, len, &new_data);
afl->mutator->afl_custom_pre_save(afl->mutator->data, mem, len, &new_data);
ck_write(fd, new_data, new_size, afl->fsrv.out_file);
ck_free(new_data);
free(new_data);
} else {