about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-06-24 09:54:25 +0200
committerGitHub <noreply@github.com>2021-06-24 09:54:25 +0200
commit93b9832acdab85653b3e7a943e964662b4db9cfb (patch)
tree6914bb1d523f63b3216df25def268b3d0d6f6ca1
parentae50a5067769e2ee4af997c8527de84cf3fdae19 (diff)
parent7bcd4e290111ca81d6d58d1b70696e9e9aaa5ac1 (diff)
downloadafl++-93b9832acdab85653b3e7a943e964662b4db9cfb.tar.gz
Merge branch 'stable' into dev
-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,