Skip to content

Fix bug introduced in commit 0932f167fd5620bba1619fc3fae90924292ebb2e#1681

Merged
aquynh merged 1 commit intocapstone-engine:masterfrom
notyourusualaccountname:fix_movsd_instruction
Mar 7, 2021
Merged

Fix bug introduced in commit 0932f167fd5620bba1619fc3fae90924292ebb2e#1681
aquynh merged 1 commit intocapstone-engine:masterfrom
notyourusualaccountname:fix_movsd_instruction

Conversation

@notyourusualaccountname
Copy link
Copy Markdown

In 0932f16 a fix was submitted to remove the repne/repnz prefix from movs instructions with SSE registers. However, the change checks for X86_MOVSW rather than X86_MOVSL (movsd).
This breaks a simple repne movsd instruction:
want:
0: f2 a5 repnz movs DWORD PTR es:[edi],DWORD PTR ds:[esi]
got:
0: f2 a5 movs DWORD PTR es:[edi],DWORD PTR ds:[esi]

Clearly, the f2 prefix is dropped, even though it should be present.

@pranith
Copy link
Copy Markdown
Contributor

pranith commented Mar 4, 2021

Can you please create a new PR on libcapstone?

@aquynh aquynh merged commit 63accbd into capstone-engine:master Mar 7, 2021
@aquynh
Copy link
Copy Markdown
Collaborator

aquynh commented Mar 7, 2021

merged, thanks!

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.

3 participants