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 STRB throws exception #1197

Closed soyasoya5 closed 1 year ago

soyasoya5 commented 1 year ago
from triton import *

ctx = TritonContext(ARCH.AARCH64)
ctx.processing(Instruction(0x1000, b"\x28\x40\x00\x39"))  # strb w8, [x1, #0x10]
# TypeError: ExtractNode::init(): The size of the extraction is higher than the child expression.
JonathanSalwan commented 1 year ago

I think that for this one, it comes from Capstone 4.x. I suggest to upgrade to Capstone 5.x

soyasoya5 commented 1 year ago

I'm using capstone's next branch which should be Capstone 5.x

Edit: Changed to use 5.0.2-rc2 instead of next branch, works now.