capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
http://www.capstone-engine.org
7.18k stars 1.52k forks source link

ARM Thumb instruction NOP.w not set alias_id #2381

Open yakamoz423 opened 4 weeks ago

yakamoz423 commented 4 weeks ago

Work environment

Questions Answers
OS/arch/bits Windows x64
Architecture armv8
Source of Capstone git clone
Version/git commit next 1a6921f5cc3e1084a6658ad05ed2c00a7ff1fd00

Instruction bytes giving faulty results

f3af8000

Steps to get the wrong result

With cstool:

cstool -dr thumbbe f3af8000

 0  f3 af 80 00  nop.w
        ID: 93 (hint)
        Is alias: 18446744073709551615 ((null)) with REAL operand set
        op_count: 1
                operands[0].type: IMM = 0x0
                operands[0].access: READ
        Groups: IsThumb2

You can see alias_id is invalid. It should be ARM_INS_ALIAS_NOP