diff options
Diffstat (limited to 'miasm2/ir')
| -rw-r--r-- | miasm2/ir/ir.py | 5 | ||||
| -rw-r--r-- | miasm2/ir/symbexec.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py index e513c179..582faee6 100644 --- a/miasm2/ir/ir.py +++ b/miasm2/ir/ir.py @@ -359,8 +359,9 @@ class ir(object): def gen_pc_update(self, c, l): c.irs.append(AssignBlock([m2_expr.ExprAff(self.pc, - m2_expr.ExprInt_from(self.pc, - l.offset))])) + m2_expr.ExprInt(l.offset, + self.pc.size) + )])) c.lines.append(l) def add_bloc(self, bloc, gen_pc_updt=False): diff --git a/miasm2/ir/symbexec.py b/miasm2/ir/symbexec.py index 2bb99e5d..fd8413fc 100644 --- a/miasm2/ir/symbexec.py +++ b/miasm2/ir/symbexec.py @@ -204,7 +204,7 @@ class symbexec(object): return expr elif isinstance(expr, m2_expr.ExprId): if isinstance(expr.name, asmbloc.asm_label) and expr.name.offset is not None: - ret = m2_expr.ExprInt_from(expr, expr.name.offset) + ret = m2_expr.ExprInt(expr.name.offset, expr.size) else: ret = state.get(expr, expr) elif isinstance(expr, m2_expr.ExprMem): |