about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-06-15 22:24:40 +0200
committerGitHub <noreply@github.com>2018-06-15 22:24:40 +0200
commit2618a72a7aada607589712ee1467a3a21537a077 (patch)
tree0af9d97ac3d7d58638b9b80d851a662379e3fe2f
parentdcf5a00e0c97ba27bfaeee01d8bd25625c7ca940 (diff)
parent25b5a5c194e26d14603f06a3c6372a8b94823495 (diff)
downloadmiasm-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.py2
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)