diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-03-06 18:48:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-03-06 18:48:16 (GMT) |
commit | 12b8a066d1d8dd8cbef587dc6fafed870604f49f (patch) | |
tree | 3eb6cfbab886b430a8479fda9a721f75ae806a4d /src/arch/dalvik | |
parent | 0320d85e480882c58f254640a54c6c6e190dbf47 (diff) |
Locked access to instruction operands when needed.
Diffstat (limited to 'src/arch/dalvik')
-rw-r--r-- | src/arch/dalvik/link.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/dalvik/link.c b/src/arch/dalvik/link.c index f92541b..d1404d0 100644 --- a/src/arch/dalvik/link.c +++ b/src/arch/dalvik/link.c @@ -101,9 +101,13 @@ void handle_dalvik_packed_switch_links(GArchInstruction *instr, GArchProcessor * char *int_val; /* Valeur en chaƮne de carac. */ GDbComment *item; /* Indication sur la condition */ - assert(g_arch_instruction_count_operands(instr) == 2); + g_arch_instruction_lock_operands(instr); - op = g_arch_instruction_get_operand(instr, 1); + assert(_g_arch_instruction_count_operands(instr) == 2); + + op = _g_arch_instruction_get_operand(instr, 1); + + g_arch_instruction_unlock_operands(instr); defined = false; |