Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[X86] Disassembly Error, failed to decode movsxd instruction again #2555

Open
venkyqz opened this issue Nov 25, 2024 · 0 comments
Open

[X86] Disassembly Error, failed to decode movsxd instruction again #2555

venkyqz opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something is not working as it should outdated-module Issue due to an outdated arch module X86 Arch

Comments

@venkyqz
Copy link

venkyqz commented Nov 25, 2024

Work environment

Questions Answers
OS/arch/bits x86_64 Ubuntu 20.04
Architecture x86_64
Source of Capstone git clone, default on next branch.
Version/git commit v6.0.0, d7be5f9

Instruction bytes giving faulty results

0x63 0x26

Expected results

It should be:

movsxd esp, [rsi]

Steps to get the wrong result

With cstool:

$ ./cstool -d x64 "0x63 0x26"
ERROR: invalid assembly code

Additional Logs, screenshots, source code, configuration dump, ...

Capstone seems to have repeated errors in decoding movsxd instruction in x86. It's confirmed fixed in issues 1093 and 2442. However, the decoding error still exists in Capstone v6.0.0. Other x86 instruction decoders like Zydis, ICED, and XED have no trouble with it.

@Rot127 Rot127 added bug Something is not working as it should X86 Arch outdated-module Issue due to an outdated arch module labels Nov 25, 2024
@venkyqz venkyqz changed the title Disassembly Error, failed to decode movsxd instruction again [X86] Disassembly Error, failed to decode movsxd instruction again Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as it should outdated-module Issue due to an outdated arch module X86 Arch
Projects
None yet
Development

No branches or pull requests

2 participants