about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVladislav Hrčka <41523109+nofiv@users.noreply.github.com>2020-03-12 20:10:08 +0100
committerVladislav Hrčka <41523109+nofiv@users.noreply.github.com>2020-03-12 20:10:08 +0100
commit3e334b7b7e7f63da89c2dc243620098782e4b6a9 (patch)
treeadd281e7a9050fc5fa752acaf671c0080d2d5cc4
parent2a1a689a17a75232d598216b4d9265be7bd479f3 (diff)
downloadmiasm-3e334b7b7e7f63da89c2dc243620098782e4b6a9.tar.gz
miasm-3e334b7b7e7f63da89c2dc243620098782e4b6a9.zip
Prevent Compose-stacking of solo Exprs
-rw-r--r--miasm/ir/symbexec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/ir/symbexec.py b/miasm/ir/symbexec.py
index 943c8b03..d02961ba 100644
--- a/miasm/ir/symbexec.py
+++ b/miasm/ir/symbexec.py
@@ -567,7 +567,7 @@ class MemSparse(object):
         memarray = self.base_to_memarray.get(base, None)
         if memarray is not None:
             mems = memarray.read(offset, size)
-            ret = ExprCompose(*mems)
+            ret = mems[0] if len(mems) == 1 else ExprCompose(*mems)
         else:
             ret = ExprMem(ptr, size)
         return ret