about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2018-08-29 18:16:24 +0200
committerGitHub <noreply@github.com>2018-08-29 18:16:24 +0200
commita64951d7213f03b08af7e0717b88ca6006c5060f (patch)
tree212ccfdfd7cff43d9bac1aba115755e7d53bafa3
parent7c0d412120abbcfaa51fdb1dd231a27595c873ed (diff)
parent829f67ef05a069fcafe069868d2347606b270493 (diff)
downloadmiasm-a64951d7213f03b08af7e0717b88ca6006c5060f.tar.gz
miasm-a64951d7213f03b08af7e0717b88ca6006c5060f.zip
Merge pull request #836 from commial/fix/bad-init
Fix bad initialization
-rw-r--r--miasm2/core/cpu.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py
index 4605a033..071991b7 100644
--- a/miasm2/core/cpu.py
+++ b/miasm2/core/cpu.py
@@ -11,6 +11,7 @@ import miasm2.expression.expression as m2_expr
 from miasm2.core.bin_stream import bin_stream, bin_stream_str
 from miasm2.core.utils import Disasm_Exception
 from miasm2.expression.simplifications import expr_simp
+from miasm2.core.locationdb import LocationDB
 
 
 from miasm2.core.asm_ast import AstNode, AstInt, AstId, AstOp
@@ -1012,7 +1013,7 @@ class instruction(object):
 
     def resolve_args_with_symbols(self, symbols=None):
         if symbols is None:
-            symbols = {}
+            symbols = LocationDB()
         args_out = []
         for expr in self.args:
             # try to resolve symbols using symbols (0 for default value)