diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-10-14 13:12:54 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-10-14 13:12:54 +0200 |
| commit | cca84493374bd41bebdb02357ef5afeda4fc1ecd (patch) | |
| tree | 0449dbc70a6573b7dba0b71fbe36abd32b1d6784 /miasm2/arch/x86/sem.py | |
| parent | 3dfe52b6a4fa6acfd1547565638a25cf6446ffdc (diff) | |
| download | miasm-cca84493374bd41bebdb02357ef5afeda4fc1ecd.tar.gz miasm-cca84493374bd41bebdb02357ef5afeda4fc1ecd.zip | |
Fix x86 LEA sem
Diffstat (limited to '')
| -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))] |