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.5k stars 533 forks source link

AARCH64: Fix instruction memory access size when it's specified by instruction (ldrb, etc) #1172

Closed Antwy closed 2 years ago

Antwy commented 2 years ago

When disassembling load/store instructions memory access size is set according to the destination register size. This is wrong for some instructions like ldrb w8, [sp, #0xc] as it takes only 1 byte.

JonathanSalwan commented 2 years ago

Hey @Antwy,

Thx for this MR. Can you apply the same patch for arm32? I think we may have the same issue.

Antwy commented 2 years ago

Hi! Feels like this is it though i'm not really into arm32 details :)