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/gui | |
parent | b57e8ef5522dcbe126157fc2c50fcf879aa7d743 (diff) |
Avoided to crash by being too strict with addresses provided by clicks on the binary strip.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/status.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/status.c b/src/gui/status.c index f466193..de80049 100644 --- a/src/gui/status.c +++ b/src/gui/status.c @@ -25,6 +25,7 @@ #include "status.h" +#include <assert.h> #include <ctype.h> #include <string.h> @@ -303,7 +304,8 @@ static void focus_address_in_status_info(GStatusInfo *info, GLoadedBinary *binar proc = g_loaded_binary_get_processor(binary); - instr = g_arch_processor_find_instr_by_address(proc, addr); + instr = _g_arch_processor_find_instr_by_address(proc, addr, true); + assert(instr != NULL); item = G_EDITOR_ITEM(info); gtk_status_stack_update_current_instruction(GTK_STATUS_STACK(item->widget), binary, instr); |