diff options
author | vanhauser-thc <vh@thc.org> | 2022-07-25 09:09:29 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-07-25 09:09:29 +0200 |
commit | 7b7914e1d6e5557640bb555a40692bfbda32462e (patch) | |
tree | 19d50308b880888cd6bd59d071fef97dcb1719f1 /frida_mode/src | |
parent | 9551be3f8e6ec55b21df4b55555db0a37e68a1a3 (diff) | |
download | afl++-7b7914e1d6e5557640bb555a40692bfbda32462e.tar.gz |
code format
Diffstat (limited to 'frida_mode/src')
-rw-r--r-- | frida_mode/src/instrument/instrument.c | 1 | ||||
-rw-r--r-- | frida_mode/src/instrument/instrument_x64.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/frida_mode/src/instrument/instrument.c b/frida_mode/src/instrument/instrument.c index a9568390..35e85ec8 100644 --- a/frida_mode/src/instrument/instrument.c +++ b/frida_mode/src/instrument/instrument.c @@ -291,6 +291,7 @@ void instrument_config(void) { } void instrument_init(void) { + if (__afl_map_size == MAP_SIZE) __afl_map_size = FRIDA_DEFAULT_MAP_SIZE; if (!instrument_is_coverage_optimize_supported()) instrument_optimize = false; diff --git a/frida_mode/src/instrument/instrument_x64.c b/frida_mode/src/instrument/instrument_x64.c index 687b2e40..b44c8439 100644 --- a/frida_mode/src/instrument/instrument_x64.c +++ b/frida_mode/src/instrument/instrument_x64.c @@ -333,8 +333,9 @@ static void instrument_coverage_write(GumAddress address, } -void instrument_coverage_optimize(const cs_insn * instr, +void instrument_coverage_optimize(const cs_insn *instr, GumStalkerOutput *output) { + GumX86Writer *cw = output->writer.x86; if (instrument_previous_pc_addr == NULL) { @@ -359,6 +360,7 @@ void instrument_coverage_optimize(const cs_insn * instr, } instrument_coverage_write(GUM_ADDRESS(instr->address), output); + } void instrument_coverage_optimize_insn(const cs_insn *instr, |