This commit is contained in:
vanhauser-thc
2022-05-09 14:30:40 +02:00
parent 51942b605d
commit 7c8246f18f
3 changed files with 4 additions and 7 deletions

View File

@ -460,6 +460,8 @@ u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf,
}
out_len = retlen;
// TODO are we sure that retbuf fits into out_buf if retbuf can actually
// increase in size?
memcpy(out_buf, retbuf, retlen);
/* Tell the custom mutator that the trimming was successful */