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

Fix incorrect setup of mnemonic and op_str field. #2192

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

Rot127
Copy link
Collaborator

@Rot127 Rot127 commented Nov 9, 2023

Some alias instructions have a leading space or tab in the asm text (no idea why LLVM does that). Because of that the mnemonic and op_str were never properly separated, because stops looking for the mnemonic at the first tab/space occurrence.

So we simply check for leading blank chars in the asm text and remove them.

closes #2189

@Rot127 Rot127 force-pushed the missing-mnemonic branch 2 times, most recently from f710dc4 to 0e1be18 Compare November 9, 2023 17:44
@kabeor
Copy link
Member

kabeor commented Nov 10, 2023

Merged.

@kabeor kabeor merged commit a7c8533 into capstone-engine:next Nov 10, 2023
11 checks passed
@Rot127 Rot127 deleted the missing-mnemonic branch November 10, 2023 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty mnemonic for ARM lsr instruction
2 participants