about summary refs log tree commit diff
path: root/frida_mode/src/cmplog/cmplog.c
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 /frida_mode/src/cmplog/cmplog.c
parentae50a5067769e2ee4af997c8527de84cf3fdae19 (diff)
parent7bcd4e290111ca81d6d58d1b70696e9e9aaa5ac1 (diff)
downloadafl++-93b9832acdab85653b3e7a943e964662b4db9cfb.tar.gz
Merge branch 'stable' into dev
Diffstat (limited to 'frida_mode/src/cmplog/cmplog.c')
-rw-r--r--frida_mode/src/cmplog/cmplog.c7
1 files changed, 7 insertions, 0 deletions
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,