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.39k stars 524 forks source link

how to get opcode size #1325

Closed yujack008 closed 1 month ago

yujack008 commented 1 month ago

In cpp setOpcode need opcode size, but my code in memory raw. how to calc inst length in raw. void setOpcode(const void* opcode, triton::uint32 size);

JonathanSalwan commented 1 month ago

Just set the max size like 16 on x86 or 4 on arm. Triton will decode only one instruction at time.