shm debug and fixes

This commit is contained in:
van Hauser
2020-06-12 11:57:54 +02:00
parent 7d19b108c4
commit db2e04361d
5 changed files with 30 additions and 11 deletions

View File

@ -139,7 +139,7 @@ static void __afl_map_shm_fuzz() {
}
map = (u8 *)mmap(0, MAX_FILE, PROT_READ, MAP_SHARED, shm_fd, 0);
map = (u8 *)mmap(0, MAX_FILE + sizeof(u32), PROT_READ, MAP_SHARED, shm_fd, 0);
#else
u32 shm_id = atoi(id_str);
@ -157,7 +157,7 @@ static void __afl_map_shm_fuzz() {
}
__afl_fuzz_len = (u32 *)map;
__afl_fuzz_ptr = (u8 *)(map + sizeof(u32));
__afl_fuzz_ptr = map + sizeof(u32);
if (getenv("AFL_DEBUG")) {