diff options
author | van Hauser <vh@thc.org> | 2020-06-03 16:19:09 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-03 16:19:09 +0200 |
commit | 031e4300a581e196961cdc49836c284f23313635 (patch) | |
tree | 7a331b4b0f53eb59c49a8f2b63e717fce77129f9 /qemu_mode/patches/afl-qemu-cpu-inl.h | |
parent | dd0ca7335ff93090def7be7fd0b46e9f71375004 (diff) | |
download | afl++-031e4300a581e196961cdc49836c284f23313635.tar.gz |
switch order of shmem fuzz
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-cpu-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h index 78f607aa..d3893066 100644 --- a/qemu_mode/patches/afl-qemu-cpu-inl.h +++ b/qemu_mode/patches/afl-qemu-cpu-inl.h @@ -147,8 +147,8 @@ static void afl_map_shm_fuzz(void) { if (id_str) { u32 shm_id = atoi(id_str); - shared_buf = shmat(shm_id, NULL, 0); - shared_buf_len = (u32 *)(shared_buf + MAX_FILE); + shared_buf_len = (u32 *)shmat(shm_id, NULL, 0); + shared_buf = (u8 *)(shared_buf_len + sizeof(int)); /* Whooooops. */ |