Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhauser-thc committed Jul 25, 2022
1 parent 9551be3 commit 7b7914e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions frida_mode/src/instrument/instrument.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion frida_mode/src/instrument/instrument_x64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion instrumentation/SanitizerCoveragePCGUARD.so.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ class ModuleSanitizerCoverageLegacyPass : public ModulePass {

#if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */


extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK
llvmGetPassPluginInfo() {

Expand Down

0 comments on commit 7b7914e

Please sign in to comment.