capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.

Home Page:http://www.capstone-engine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

x64 disassembler big endian bug

trufae opened this issue · comments

When using capstone5 on a big endian machine i get different output for some instructions:

./cstool x64 8b3482
 0  8b 34 82                                         mov	esi, dword ptr [rdx + rax*0]

on little endian i get the correct output:

$ ./cstool x64 8b3482
 0  8b 34 82                                         mov	esi, dword ptr [rdx + rax*4]

i have verified the same bug happens on next and v5 branches