diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-12-29 01:40:13 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-12-29 01:40:13 (GMT) |
commit | 73fb6dd90282dd10a6c3febe7348ad698c0336a8 (patch) | |
tree | 01fddcbd1c97c6fa6facfae6736b57c4f0317ee6 /src/arch/processor.h | |
parent | b57e8ef5522dcbe126157fc2c50fcf879aa7d743 (diff) |
Avoided to crash by being too strict with addresses provided by clicks on the binary strip.
Diffstat (limited to 'src/arch/processor.h')
-rw-r--r-- | src/arch/processor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/arch/processor.h b/src/arch/processor.h index 45b9012..dd93960 100644 --- a/src/arch/processor.h +++ b/src/arch/processor.h @@ -95,10 +95,16 @@ GArchInstruction *g_arch_processor_get_disassembled_instructions(const GArchProc const instr_coverage *g_arch_processor_find_coverage_by_address(const GArchProcessor *, const vmpa2t *); /* Recherche une instruction d'après son adresse. */ -GArchInstruction *g_arch_processor_find_instr_by_address(const GArchProcessor *, const vmpa2t *); +GArchInstruction *_g_arch_processor_find_instr_by_address(const GArchProcessor *, const vmpa2t *, bool); /* Recherche rapidement une instruction d'après son adresse. */ -GArchInstruction *g_arch_processor_find_covered_instr_by_address(const GArchProcessor *, const instr_coverage *, const vmpa2t *); +GArchInstruction *_g_arch_processor_find_covered_instr_by_address(const GArchProcessor *, const instr_coverage *, const vmpa2t *, bool); + +#define g_arch_processor_find_instr_by_address(proc, addr) \ + _g_arch_processor_find_instr_by_address(proc, addr, false) + +#define g_arch_processor_find_covered_instr_by_address(proc, coverage, addr) \ + _g_arch_processor_find_covered_instr_by_address(proc, coverage, addr, false) /* Fournit l'instruction qui en précède une autre. */ GArchInstruction *g_arch_processor_get_prev_instr(const GArchProcessor *, const GArchInstruction *); |