Skip to content

Invalid access types for repe cmpsd #2899

@Shaw-ChooChoo

Description

@Shaw-ChooChoo

Work environment

Questions Answers
System Capstone runs on OS/arch/bits Windows x86 etc.
Capstone module affected x86.
Source of Capstone git clone
Version/git commit next: commit 676893c

Instruction bytes giving faulty results

cstool -d x32 0xF3,0xA7
 0  f3 a7                                            repe cmpsd	dword ptr [esi], dword ptr es:[edi]

Expected results

It should be:
InSn->detail->x86.operands[0].access=CS_AC_READ
InSn->detail->x86.operands[1].access=CS_AC_READ

Steps to get the wrong result

With lib:
InSn->detail->x86.operands[0].access=CS_AC_INVALID
InSn->detail->x86.operands[1].access=CS_AC_INVALID

Additional Logs, screenshots, source code, configuration dump, ...

Drag and drop zip archives containing the Additional info here, don't use external services or link.
Screenshots can be directly dropped here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    X86ArchbugSomething is not working as it should

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions