about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2020-03-16 19:19:23 +0100
committerGitHub <noreply@github.com>2020-03-16 19:19:23 +0100
commit26d8eba1322d3dcc9d2e8111c859c417aed2c1e0 (patch)
tree9a6b09b5063236c9e00d9941a4e941d325bc3425
parentfef944b65f6d3d6db65e62e85480f90887b64f8f (diff)
parent3e334b7b7e7f63da89c2dc243620098782e4b6a9 (diff)
downloadmiasm-26d8eba1322d3dcc9d2e8111c859c417aed2c1e0.tar.gz
miasm-26d8eba1322d3dcc9d2e8111c859c417aed2c1e0.zip
Merge pull request #1155 from nofiv/patch-1
MemSparse potential read issue
-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 8894c314..65ddde3b 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