about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--docs/Changelog.md4
-rw-r--r--frida_mode/src/cmplog/cmplog.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md
index 4dd68cd2..475240c2 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -31,11 +31,11 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
       in-memory testcases, asan)
   - qemu_mode:
     - performance fix when cmplog was used
+  - afl-cmin and afl-showmap -i do now descend into subdirectories
+    (like afl-fuzz does) - note that afl-cmin.bash does not!
   - afl_analyze:
     - fix timeout handling
     - add forkserver support for better performance
-  - afl-cmin and afl-showmap -i do now descend into subdirectories
-    (like afl-fuzz does) - note that afl-cmin.bash does not!
   - ensure afl-compiler-rt is built for gcc_module
 
 ### Version ++3.13c (release)
diff --git a/frida_mode/src/cmplog/cmplog.c b/frida_mode/src/cmplog/cmplog.c
index 8814f7f3..0e3fbe53 100644
--- a/frida_mode/src/cmplog/cmplog.c
+++ b/frida_mode/src/cmplog/cmplog.c
@@ -83,6 +83,13 @@ void cmplog_init(void) {
 
   }
 
+  /*
+   * We can't use /dev/null or /dev/zero for this since it appears that they
+   * don't validate the input buffer. Persumably as an optimization because they
+   * don't actually write any data. The file will be deleted on close.
+   */
+  fd_tmp = cmplog_create_temp();
+
 }
 
 static gboolean cmplog_contains(GumAddress inner_base, GumAddress inner_limit,