mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
Properly null CmpLog map in deinit (#1395)
Co-authored-by: van Hauser <vh@thc.org>
This commit is contained in:
@ -388,6 +388,8 @@ static inline const char *colorfilter(const char *x) {
|
|||||||
\
|
\
|
||||||
} while (1); \
|
} while (1); \
|
||||||
\
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define ck_read(fd, buf, len, fn) \
|
#define ck_read(fd, buf, len, fn) \
|
||||||
|
@ -107,7 +107,7 @@ void afl_shm_deinit(sharedmem_t *shm) {
|
|||||||
if (shm->cmp_map != NULL) {
|
if (shm->cmp_map != NULL) {
|
||||||
|
|
||||||
munmap(shm->cmp_map, shm->map_size);
|
munmap(shm->cmp_map, shm->map_size);
|
||||||
shm->map = NULL;
|
shm->cmp_map = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user