about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2018-07-02 07:56:21 +0200
committerGitHub <noreply@github.com>2018-07-02 07:56:21 +0200
commitc7ca6a23768178dd49c8fe97d7c7b1e0be02cd2e (patch)
tree81b55c62e2bfead68b9292d76a7402e8682c8dce
parentfbf307796f56f68cedaf763563e478155b843b83 (diff)
parent1cfab97af3dbbf8c00723628d8737ea35567d2c6 (diff)
downloadmiasm-c7ca6a23768178dd49c8fe97d7c7b1e0be02cd2e.tar.gz
miasm-c7ca6a23768178dd49c8fe97d7c7b1e0be02cd2e.zip
Merge pull request #786 from guedou/mips32_dstflow2label
Fix mips32 dstflow2label()
Diffstat (limited to '')
-rw-r--r--miasm2/arch/mips32/arch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/mips32/arch.py b/miasm2/arch/mips32/arch.py
index 939ce5b0..1502cde4 100644
--- a/miasm2/arch/mips32/arch.py
+++ b/miasm2/arch/mips32/arch.py
@@ -97,8 +97,8 @@ class instruction_mips32(cpu.instruction):
         if self.name in ["J", 'JAL']:
             expr = self.args[0].arg
             addr = (self.offset & (0xFFFFFFFF ^ ((1<< 28)-1))) + expr
-            label = symbol_pool.getby_offset_create(addr)
-            self.args[0] = ExprLoc(label.loc_key, expr.size)
+            loc_key = symbol_pool.getby_offset_create(addr)
+            self.args[0] = ExprLoc(loc_key, expr.size)
             return
 
         ndx = self.get_dst_num()