about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2019-02-11 10:55:47 +0100
committerGitHub <noreply@github.com>2019-02-11 10:55:47 +0100
commit1d42f745d930d21fdc64d1a7689fae2d5e926909 (patch)
tree45a02ca965593697324be321ef53d891dc8a835b
parent650b8ae195e920d361d8d99017e30dce37304192 (diff)
parent02a5d7bd35eb70d82ab7ba03054d064cb67616e0 (diff)
downloadmiasm-1d42f745d930d21fdc64d1a7689fae2d5e926909.tar.gz
miasm-1d42f745d930d21fdc64d1a7689fae2d5e926909.zip
Merge pull request #966 from serpilliere/fix_popfw
X86: fix popfw semantic
-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 794af2be..b2ef5a43 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -1321,7 +1321,7 @@ def _tpl_eflags(tmp):
 
 
 def popfw(ir, instr):
-    tmp = ir.ExprMem(mRSP[instr.mode], 32)
+    tmp = ir.ExprMem(mRSP[instr.mode], 16)
     e = _tpl_eflags(tmp)
     e.append(
         m2_expr.ExprAssign(mRSP[instr.mode], mRSP[instr.mode] + m2_expr.ExprInt(2, mRSP[instr.mode].size)))