diff options
| author | Ajax <commial@gmail.com> | 2018-02-15 14:16:08 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2018-02-15 15:45:24 +0100 |
| commit | 2420df074cd2f3bb8b1e343a5bce6b83fffa9d80 (patch) | |
| tree | b97a1b5d0dbd6b686b12a0f01e32df5e63b07725 /miasm2/arch/x86/sem.py | |
| parent | e71a3def7f936f5738d6988755d853601e84d184 (diff) | |
| download | miasm-2420df074cd2f3bb8b1e343a5bce6b83fffa9d80.tar.gz miasm-2420df074cd2f3bb8b1e343a5bce6b83fffa9d80.zip | |
Remove the default size of ExprMem expressions
Diffstat (limited to 'miasm2/arch/x86/sem.py')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 9f438b71..d81cbe5e 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -1078,7 +1078,7 @@ def pushfw(ir, instr): def popfd(ir, instr): - tmp = ir.ExprMem(mRSP[instr.mode]) + tmp = ir.ExprMem(mRSP[instr.mode], 32) e = [] e.append(m2_expr.ExprAff(cf, m2_expr.ExprSlice(tmp, 0, 1))) e.append(m2_expr.ExprAff(pf, m2_expr.ExprSlice(tmp, 2, 3))) @@ -1121,7 +1121,7 @@ def _tpl_eflags(tmp): def popfw(ir, instr): - tmp = ir.ExprMem(mRSP[instr.mode]) + tmp = ir.ExprMem(mRSP[instr.mode], 32) e = _tpl_eflags(tmp) e.append( m2_expr.ExprAff(mRSP[instr.mode], mRSP[instr.mode] + m2_expr.ExprInt(2, mRSP[instr.mode].size))) @@ -5046,7 +5046,7 @@ class ir_x86_16(IntermediateRepresentation): def mod_pc(self, instr, instr_ir, extra_ir): pass - def ExprMem(self, ptr, size=32): + def ExprMem(self, ptr, size): """Generate a memory access to @ptr The ptr is resized to a fixed size self.addrsize |