mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
cmplog_shm shmat was missing result check
This commit is contained in:
@ -191,7 +191,8 @@ void setup_shm(unsigned char dumb_mode) {
|
||||
|
||||
if (cmplog_mode) cmp_map = shmat(cmplog_shm_id, NULL, 0);
|
||||
|
||||
if (!trace_bits) PFATAL("shmat() failed");
|
||||
if (trace_bits == -1 || !trace_bits || cmp_map == -1 || !cmp_map)
|
||||
PFATAL("shmat() failed");
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user