We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
git clone
0xc0, 0x03, 0x5f, 0xd6, 0x98, 0xf2, 0xff, 0xff, 0xc0, 0x03, 0x5f, 0xd6
It should be:
1000 c0 03 5f d6 ret 1004 98 f2 ff ff .byte 0x98, 0xf2, 0xff, 0xff 1008 c0 03 5f d6 ret
With cstool we got expected result:
cstool
$ cstool -s arm64 "c0035fd698f2ffffc0035fd6" 1000 c0 03 5f d6 ret 1004 98 f2 ff ff .byte 0x98, 0xf2, 0xff, 0xff 1008 c0 03 5f d6 ret
With Python code
Python
from capstone import * CODE = b"\xc0\x03\x5f\xd6\x98\xf2\xff\xff\xc0\x03\x5f\xd6" md = Cs(CS_ARCH_ARM64, CS_MODE_ARM) md.skipdata = True for insn in md.disasm(CODE, 0x1000): print("%x %s %s %s" % (insn.address, "".join(["%02x " % b for b in insn.bytes]), insn.mnemonic, insn.op_str))
Got only first instruction
1000 c0 03 5f d6 ret
test_skipdata.c
v5.0.1
Probably the issue with dynamic library.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Work environment
git clone
, pipInstruction bytes giving faulty results
Expected results
It should be:
Steps to get the wrong result
With
cstool
we got expected result:$ cstool -s arm64 "c0035fd698f2ffffc0035fd6" 1000 c0 03 5f d6 ret 1004 98 f2 ff ff .byte 0x98, 0xf2, 0xff, 0xff 1008 c0 03 5f d6 ret
With
Python
codeGot only first instruction
NOTE
test_skipdata.c
works as expected.v5.0.1
release sources from python returns invalid result.Probably the issue with dynamic library.
The text was updated successfully, but these errors were encountered: