diff options
| author | Camille Mougey <commial@gmail.com> | 2018-06-15 22:24:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-15 22:24:40 +0200 |
| commit | 2618a72a7aada607589712ee1467a3a21537a077 (patch) | |
| tree | 0af9d97ac3d7d58638b9b80d851a662379e3fe2f | |
| parent | dcf5a00e0c97ba27bfaeee01d8bd25625c7ca940 (diff) | |
| parent | 25b5a5c194e26d14603f06a3c6372a8b94823495 (diff) | |
| download | miasm-2618a72a7aada607589712ee1467a3a21537a077.tar.gz miasm-2618a72a7aada607589712ee1467a3a21537a077.zip | |
Merge pull request #764 from serpilliere/fix_x86_sem_ptr
X86/sem: simplify pop addr
| -rw-r--r-- | miasm2/arch/x86/sem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index d53677be..5989a0b4 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -776,7 +776,7 @@ def pop_gen(ir, instr, src, size): e.append(m2_expr.ExprAff(sp, new_sp)) # XXX FIX XXX for pop [esp] if isinstance(src, m2_expr.ExprMem): - src = src.replace_expr({sp: new_sp}) + src = expr_simp(src.replace_expr({sp: new_sp})) result = sp if ir.do_stk_segm: result = ir.gen_segm_expr(SS, result) |