-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
skipdata doesn't work correctly from python #2336
Comments
Any advices about how to overcome this?.. |
Sorry for the late answer. Currently, we are really busy with many other construction sides in Capstone. So the Python bindings don't get the love they would actually need. We first want to bring the C code base up to date. Because the Python bindings possibly get a complete rewrite. For those two reasons, no one looked at this one yet. Although, you can try to use the |
@Rot127 Thanks for response. At least we know that it is in a road map. We'll be waiting for next release. |
The library installed through the PyPi package was found to be invalid because the definition of CS_OPT_ON in python and dll was different。 # bindings/python/capstone/__init__.py
CS_OPT_ON = 1 << 0 # Turn ON an option (CS_OPT_DETAIL)
#include/capstone/capstone.h
CS_OPT_ON = 3, ///< Turn ON an option (CS_OPT_DETAIL, CS_OPT_SKIPDATA). The next branch has fixed this. |
@Amoystyle In the |
@cyb3rc Can you please try it and close this one if it works for you? |
@Rot127 Checked with v.5.0.3. It works! Thanks a lot! |
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: