mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
making AFL_MAP_SIZE obsolete
This commit is contained in:
@ -66,9 +66,17 @@ static list_t shm_list = {.element_prealloc_count = 0};
|
||||
|
||||
void afl_shm_deinit(sharedmem_t *shm) {
|
||||
|
||||
if (shm == NULL) return;
|
||||
|
||||
if (shm == NULL) { return; }
|
||||
list_remove(&shm_list, shm);
|
||||
if (shm->shmemfuzz_mode) {
|
||||
|
||||
unsetenv(SHM_FUZZ_ENV_VAR);
|
||||
|
||||
} else {
|
||||
|
||||
unsetenv(SHM_ENV_VAR);
|
||||
|
||||
}
|
||||
|
||||
#ifdef USEMMAP
|
||||
if (shm->map != NULL) {
|
||||
@ -94,6 +102,8 @@ void afl_shm_deinit(sharedmem_t *shm) {
|
||||
|
||||
if (shm->cmplog_mode) {
|
||||
|
||||
unsetenv(CMPLOG_SHM_ENV_VAR);
|
||||
|
||||
if (shm->cmp_map != NULL) {
|
||||
|
||||
munmap(shm->cmp_map, shm->map_size);
|
||||
|
Reference in New Issue
Block a user