about summary refs log tree commit diff stats
path: root/miasm2/core/cpu.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2018-08-29 16:40:00 +0200
committerAjax <commial@gmail.com>2018-08-29 16:40:00 +0200
commit829f67ef05a069fcafe069868d2347606b270493 (patch)
tree212ccfdfd7cff43d9bac1aba115755e7d53bafa3 /miasm2/core/cpu.py
parent7c0d412120abbcfaa51fdb1dd231a27595c873ed (diff)
downloadmiasm-829f67ef05a069fcafe069868d2347606b270493.tar.gz
miasm-829f67ef05a069fcafe069868d2347606b270493.zip
Fix bad initialization
Diffstat (limited to 'miasm2/core/cpu.py')
-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)