about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorgg <gg@quarkslab.com>2015-02-20 19:07:15 +0100
committergg <gg@quarkslab.com>2015-02-20 19:07:15 +0100
commitf1b008f62ce9bb16e531ec97a8e763643d8265b4 (patch)
treef289de057101b3ca1e525c7b7d65f4422973ee7b
parentae4b4b7e169a619bf63b3dd62f6ff7e0ce5ed2a3 (diff)
downloadmiasm-f1b008f62ce9bb16e531ec97a8e763643d8265b4.tar.gz
miasm-f1b008f62ce9bb16e531ec97a8e763643d8265b4.zip
Fix commit ae4b4b7 because of PR comment
-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 2f29506d..52cec344 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -983,7 +983,7 @@ def popfw(ir, instr):
     e.append(m2_expr.ExprAff(of, m2_expr.ExprSlice(tmp, 11, 12)))
     e.append(m2_expr.ExprAff(iopl, m2_expr.ExprSlice(tmp, 12, 14)))
     e.append(m2_expr.ExprAff(nt, m2_expr.ExprSlice(tmp, 14, 15)))
-    e.append(m2_expr.ExprAff(mRSP[instr.mode], mRSP[instr.mode] + m2_expr.ExprInt32(2)))
+    e.append(m2_expr.ExprAff(mRSP[instr.mode], mRSP[instr.mode] + m2_expr.ExprInt_fromsize(mRSP[instr.mode].size, 2)))
     return e, []