diff options
author | Your Name <you@example.com> | 2021-11-17 20:27:45 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2021-11-17 20:27:45 +0000 |
commit | 43458f7e8b4963f2c3fbade69379c2d2e0654989 (patch) | |
tree | c710b9a83ce68aa9d713dc95e7740d7de5d11b10 | |
parent | 67a6481b36a1fc9c846c8974fac6202bf7a27568 (diff) | |
download | afl++-43458f7e8b4963f2c3fbade69379c2d2e0654989.tar.gz |
Disable fetching adjacent blocks when coverage is enabled
-rw-r--r-- | frida_mode/src/stalker.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/frida_mode/src/stalker.c b/frida_mode/src/stalker.c index 65ed5d50..b4dd5a47 100644 --- a/frida_mode/src/stalker.c +++ b/frida_mode/src/stalker.c @@ -111,10 +111,23 @@ void stalker_init(void) { } #endif - if (stalker_ic_entries == 0) { stalker_ic_entries = 32; } - if (stalker_adjacent_blocks == 0) { stalker_adjacent_blocks = 32; } + if (instrument_coverage_filename == NULL) { + + if (stalker_adjacent_blocks == 0) { stalker_adjacent_blocks = 32; } + + } else { + + if (stalker_adjacent_blocks != 0) { + + FFATAL( + "AFL_FRIDA_STALKER_ADJACENT_BLOCKS and AFL_FRIDA_INST_COVERAGE_FILE " + "are incompatible"); + + } + + } #if defined(__x86_64__) || defined(__i386__) stalker = g_object_new(GUM_TYPE_STALKER, "ic-entries", stalker_ic_entries, |