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

movsxd not disassembed correctly in capstone5 #2442

Open
jordan9001 opened this issue Aug 15, 2024 · 0 comments
Open

movsxd not disassembed correctly in capstone5 #2442

jordan9001 opened this issue Aug 15, 2024 · 0 comments
Labels
Milestone

Comments

@jordan9001
Copy link

Work environment

Questions Answers
OS/arch/bits Linux x86_64 build
Architecture x86_64
Source of Capstone Both 5.0.2 release, and latest from next branch
Version/git commit v5.0.2, 5e6807b

Instruction bytes giving faulty results

0x41,0x63,0xd2
0x63,0x6b,0x20,0x55,0x48,0x8b,0x05,0xb8,0x13,0x00,0x00

Expected results

It should be:

4163d2             movsxd  edx, r10d

The other set is another variation of movsd.

Steps to get the wrong result

With cstool:

$ ./cstool -d x64 "0x63 0x6b 0x20 0x55 0x48 0x8b 0x05 0xb8 0x13 0x00 0x00"
ERROR: invalid assembly code
$ ./cstool -d x64 "0x41 0x63 0xd2"
ERROR: invalid assembly code

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

See the previous issue:
#1093

@Rot127 Rot127 added bug X86 Arch labels Aug 16, 2024
@Rot127 Rot127 modified the milestones: v5.0.3, v6 - Alpha Aug 16, 2024
@Rot127 Rot127 modified the milestones: v6 - Alpha, v5.0.3, v5.0.4 Aug 26, 2024
@Rot127 Rot127 modified the milestones: v5.0.4, v5.0.5 Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants