mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
i am too tired :-(
This commit is contained in:
@ -189,10 +189,15 @@ void setup_shm(unsigned char dumb_mode) {
|
||||
|
||||
trace_bits = shmat(shm_id, NULL, 0);
|
||||
|
||||
if (cmplog_mode) cmp_map = shmat(cmplog_shm_id, NULL, 0);
|
||||
if (trace_bits == (void *)-1 || !trace_bits) PFATAL("shmat() failed");
|
||||
|
||||
if (trace_bits == -1 || !trace_bits || cmp_map == -1 || !cmp_map)
|
||||
PFATAL("shmat() failed");
|
||||
if (cmplog_mode) {
|
||||
|
||||
cmp_map = shmat(cmplog_shm_id, NULL, 0);
|
||||
|
||||
if (cmp_map == (void *)-1 || !cmp_map) PFATAL("shmat() failed");
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user