about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--docs/Changelog.md5
-rw-r--r--src/afl-sharedmem.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md
index 2f8674c8..9ae84ae2 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -11,7 +11,10 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
 
 ### Version ++2.61d (develop):
 
-  - ...
+  - Important fix for memory allocation functions that result in afl-fuzz
+    not identifying crashes - UPDATE!
+  - Small fix for -E/-V to release the CPU
+  - CmpLog does not need sancov anymore
 
 
 ### Version ++2.61c (release):
diff --git a/src/afl-sharedmem.c b/src/afl-sharedmem.c
index c5697e81..b4dadfe4 100644
--- a/src/afl-sharedmem.c
+++ b/src/afl-sharedmem.c
@@ -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