Open thestr4ng3r opened 1 month ago
Note please, people who find this one and need to test, please use cstest_py
.
The C and Python code consume the exact same test cases.
pip install ./bindings/python
pip install ./bindings/python/cstest_py
cstest_py tests/
Note, cstest
is not deprecated. I just didn't yet implemented it for other platforms then Linux yet, because if time constraints.
Work environment
-DCAPSTONE_BUILD_CSTEST=ON
Expected behavior
cstest (
-DCAPSTONE_BUILD_CSTEST=ON
) compilesActual behavior
Steps to reproduce the behavior
Compile with cmake and cstest enabled (
-DCAPSTONE_BUILD_CSTEST=ON
) on a platform that does not have strndup.Additional Logs, screenshots, source code, configuration dump, ...
There are two usages of
strndup
which is specified by POSIX, but not C standard, and thus not widely available, e.g. on Mac OS X 10.5 with gcc 7. On this platform, https://github.com/capstone-engine/capstone/pull/2508 is also necessary for cstest.