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

@ -132,8 +132,7 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) {
if (new_mem != *mem) {
*mem = afl_realloc(mem, new_size);
memcpy(*mem, new_mem, new_size);
*mem = new_mem;
}