diff options
author | Your Name <you@example.com> | 2021-08-20 17:28:40 +0100 |
---|---|---|
committer | Your Name <you@example.com> | 2021-08-20 17:28:40 +0100 |
commit | 028f8ced8f772d82a7efc522ec629bf4a5fff32d (patch) | |
tree | f5440087d2779984812b5e8c50f1fda6bdbb489b /frida_mode/src/instrument/instrument_coverage.c | |
parent | 3513ba2e51222151945e8ae87236bb9d2f07f37a (diff) | |
download | afl++-028f8ced8f772d82a7efc522ec629bf4a5fff32d.tar.gz |
Fixed coverage on OSX (dependency on pipe2)
Removed use of 'realpath' in makefiles to fix OSX incompatibility Fixed handling of when prefetching should be enabled Snap the main binary during initialization to avoid stability issues with lazy loading Add support for configurable inline cache entries for FRIDA on x86/x64 Support for prefetching FRIDA backpatches on x86/x64 Improved stats support on x86/x64/aarch64
Diffstat (limited to 'frida_mode/src/instrument/instrument_coverage.c')
-rw-r--r-- | frida_mode/src/instrument/instrument_coverage.c | 5 |
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) { |