JonathanSalwan / Triton

Triton is a dynamic binary analysis library. Build your own program analysis tools, automate your reverse engineering, perform software verification or just emulate code.
https://triton-library.github.io
Apache License 2.0
3.4k stars 524 forks source link

AArch64 MOVI reg, #imm throws exception #1196

Closed soyasoya5 closed 1 year ago

soyasoya5 commented 1 year ago

Code below throws EXCEPTION.FAULT_UD when it shouldn't

from triton import *

ctx = TritonContext(ARCH.AARCH64)
inst = Instruction(0x1000, b"\x00\xE4\x00\x6F")  #  MOVI  V0.2D, #0
assert ctx.processing(inst) == EXCEPTION.NO_FAULT # AssertionError

Originally posted by @soyasoya5 in https://github.com/JonathanSalwan/Triton/issues/1195#issuecomment-1296272282

JonathanSalwan commented 1 year ago

Patched. If it's ok, you can close this thread :)