Fix issue with trim in shared memory mode

This commit is contained in:
mchesser 2022-03-07 14:28:45 +10:30
parent 2eeba2dbf0
commit 70cc32dc6d

View File

@ -232,7 +232,7 @@ static void write_with_gap(afl_state_t *afl, u8 *mem, u32 len, u32 skip_at,
memcpy(afl->fsrv.shmem_fuzz, mem, skip_at);
memcpy(afl->fsrv.shmem_fuzz, mem + skip_at + skip_len, tail_len);
memcpy(afl->fsrv.shmem_fuzz + skip_at, mem + skip_at + skip_len, tail_len);
}