diff options
| -rw-r--r-- | miasm2/arch/x86/sem.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 27ee5b80..69c21ac8 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -297,6 +297,10 @@ def movsx(ir, instr, a, b): def lea(ir, instr, a, b): src = b.arg + if b.is_op_segm(): + # Do not use segmentation here + src = src.args[1] + if src.size > a.size: src = src[:a.size] e = [m2_expr.ExprAff(a, src.zeroExtend(a.size))] |