mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48: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);
|
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)
|
if (cmplog_mode) {
|
||||||
PFATAL("shmat() failed");
|
|
||||||
|
cmp_map = shmat(cmplog_shm_id, NULL, 0);
|
||||||
|
|
||||||
|
if (cmp_map == (void *)-1 || !cmp_map) PFATAL("shmat() failed");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user