diff options
| author | Vladislav Hrčka <41523109+nofiv@users.noreply.github.com> | 2020-03-12 20:10:08 +0100 |
|---|---|---|
| committer | Vladislav Hrčka <41523109+nofiv@users.noreply.github.com> | 2020-03-12 20:10:08 +0100 |
| commit | 3e334b7b7e7f63da89c2dc243620098782e4b6a9 (patch) | |
| tree | add281e7a9050fc5fa752acaf671c0080d2d5cc4 | |
| parent | 2a1a689a17a75232d598216b4d9265be7bd479f3 (diff) | |
| download | miasm-3e334b7b7e7f63da89c2dc243620098782e4b6a9.tar.gz miasm-3e334b7b7e7f63da89c2dc243620098782e4b6a9.zip | |
Prevent Compose-stacking of solo Exprs
| -rw-r--r-- | miasm/ir/symbexec.py | 2 |
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 |