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

Got abnormal behavior when set CS_OPT_DETAIL_REAL without CS_OPT_ON #2302

Open
yakamoz423 opened this issue Mar 29, 2024 · 0 comments
Open

Comments

@yakamoz423
Copy link

Work environment

Questions Answers
OS/arch/bits Windows x86
Architecture armv8
Source of Capstone git clone & cmake mingw
Version/git commit next, 0d12bca

Expected behavior

According to cs_v6_release_guide, I just set cs_option(handle, CS_OPT_DETAIL, CS_OPT_DETAIL_REAL);, and I found the details is part invalid.

Changing code to cs_option(handle, CS_OPT_DETAIL, (CS_OPT_ON | CS_OPT_DETAIL_REAL));, it works.

I think it's better to make CS_OPT_DETAIL_REAL implicitly turn on the detials? or maybe the doc need to update, and don't generate groups and condition info and condition when detail turned off.

Actual behavior

console print ERROR: Too many groups defined in instruction mapping.
and groups info pile up while no other details.
This image is not captured from cstool.

Steps to reproduce the behavior

Command:

cstool -r armbe e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201e3c00201 0x233
@Rot127 Rot127 added this to the v6 milestone Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants