fix custom post process with custom send

This commit is contained in:
vanhauser-thc
2024-08-16 10:46:01 +02:00
parent bf7a6d69cf
commit 93fb1d1a24

View File

@ -216,6 +216,8 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) {
/* everything as planned. use the potentially new data. */ /* everything as planned. use the potentially new data. */
afl_fsrv_write_to_testcase(&afl->fsrv, *mem, new_size); afl_fsrv_write_to_testcase(&afl->fsrv, *mem, new_size);
}
if (likely(!afl->afl_env.afl_post_process_keep_original)) { if (likely(!afl->afl_env.afl_post_process_keep_original)) {
len = new_size; len = new_size;
@ -228,8 +230,6 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) {
} }
}
} else { /* !afl->custom_mutators_count */ } else { /* !afl->custom_mutators_count */
if (unlikely(len < afl->min_length && !fix)) { if (unlikely(len < afl->min_length && !fix)) {