about summary refs log tree commit diff
path: root/frida_mode/src/instrument/instrument_coverage.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-08-20 23:15:18 +0200
committerGitHub <noreply@github.com>2021-08-20 23:15:18 +0200
commitca9c87dd45d8b9a746a212cbc6ce85b78b637d8c (patch)
tree665b9368d2c1908cf71dbc4a76517f88c5317d9a /frida_mode/src/instrument/instrument_coverage.c
parentd8c221fade27b75a387587dc7b5e20ab82ec8012 (diff)
parent028f8ced8f772d82a7efc522ec629bf4a5fff32d (diff)
downloadafl++-ca9c87dd45d8b9a746a212cbc6ce85b78b637d8c.tar.gz
Merge pull request #1075 from WorksButNotTested/test
Various New Features & Fixes
Diffstat (limited to 'frida_mode/src/instrument/instrument_coverage.c')
-rw-r--r--frida_mode/src/instrument/instrument_coverage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/frida_mode/src/instrument/instrument_coverage.c b/frida_mode/src/instrument/instrument_coverage.c
index 9d1701d1..4c0d1a14 100644
--- a/frida_mode/src/instrument/instrument_coverage.c
+++ b/frida_mode/src/instrument/instrument_coverage.c
@@ -1,3 +1,4 @@
+#include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
 #include <unistd.h>
@@ -277,8 +278,6 @@ static void instrument_coverage_run() {
 
   if (bytes != 0) { FATAL("Coverage data truncated"); }
 
-  if (errno != ENOENT) { FATAL("Coverage I/O error"); }
-
   OKF("Coverage - Preparing");
 
   coverage_get_ranges();
@@ -325,7 +324,7 @@ void instrument_coverage_init(void) {
 
   g_free(path);
 
-  if (pipe2(coverage_pipes, O_DIRECT) != 0) { FATAL("Failed to create pipes"); }
+  if (pipe(coverage_pipes) != 0) { FATAL("Failed to create pipes"); }
 
   coverage_hash = g_hash_table_new(g_direct_hash, g_direct_equal);
   if (coverage_hash == NULL) {