Skip to content

x86: fix call/jmp access mode of mem operand#1479

Merged
aquynh merged 1 commit intocapstone-engine:masterfrom
abenkhadra:master
May 14, 2019
Merged

x86: fix call/jmp access mode of mem operand#1479
aquynh merged 1 commit intocapstone-engine:masterfrom
abenkhadra:master

Conversation

@abenkhadra
Copy link
Copy Markdown
Contributor

This PR fixes the access mode of the memory operand for variants of call and jmp instructions. Currently, this access mode is set to CS_AC_IGNORE. The fixed mode is CS_AC_READ

In order to check the fix, I provide sample hex code of instructions jmp qword ptr [rax*8 + 0x4edbe0] and call qword ptr [rax*8 + 0x4edbe0] respectively.

cstool -d x64 "ff 24 c5 e0 db 4e 00"
cstool -d x64 "ff 14 c5 e0 db 4e 00"

sets CS_AC_READ for memory operand of call and jmp instructions
@aquynh aquynh merged commit 11746da into capstone-engine:master May 14, 2019
aquynh pushed a commit that referenced this pull request May 14, 2019
sets CS_AC_READ for memory operand of call and jmp instructions
aquynh pushed a commit that referenced this pull request May 14, 2019
sets CS_AC_READ for memory operand of call and jmp instructions
@aquynh
Copy link
Copy Markdown
Collaborator

aquynh commented May 14, 2019

merged, thanks!

@riptl riptl mentioned this pull request Jul 22, 2022
6 tasks
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.

2 participants