mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
fix
This commit is contained in:
@ -242,11 +242,11 @@ u8 *afl_shm_init(sharedmem_t *shm, size_t map_size,
|
|||||||
#else
|
#else
|
||||||
u8 *shm_str;
|
u8 *shm_str;
|
||||||
|
|
||||||
// handle qemu/unicorn compcov map overwrite
|
// for qemu+unicorn we have to increase by 8 to account for potential
|
||||||
if (map_size == MAP_SIZE) { map_size += 8; }
|
// compcov map overwrite
|
||||||
|
|
||||||
shm->shm_id =
|
shm->shm_id =
|
||||||
shmget(IPC_PRIVATE, map_size, IPC_CREAT | IPC_EXCL | DEFAULT_PERMISSION);
|
shmget(IPC_PRIVATE, map_size == MAP_SIZE ? map_size + 8 : map_size,
|
||||||
|
IPC_CREAT | IPC_EXCL | DEFAULT_PERMISSION);
|
||||||
if (shm->shm_id < 0) {
|
if (shm->shm_id < 0) {
|
||||||
|
|
||||||
PFATAL("shmget() failed, try running afl-system-config");
|
PFATAL("shmget() failed, try running afl-system-config");
|
||||||
|
Reference in New Issue
Block a user