Properly null CmpLog map in deinit (#1395)

Co-authored-by: van Hauser <vh@thc.org>
This commit is contained in:
che30122
2022-04-28 15:42:49 +08:00
committed by GitHub
parent ee409d18a6
commit 01594dc416
2 changed files with 3 additions and 1 deletions

View File

@ -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) \

View File

@ -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;
} }