-
-
Notifications
You must be signed in to change notification settings - Fork 443
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
Zydis formats extra operand-size suffix for VSIB instructions #550
Comments
Hi @recoules, good catch! This could be a potential fix, but we have to check all VSIB instructions first to be sure this doesn't break anything (aka making sure that the mnemonics always include the size suffix natively). |
This seems to be the case. At least for now all VSIB instructions have mandatory OSIZE prefix. |
Thanks for reactive responses :)
Yes I can (but will have to wait this evening or tomorrow) |
Dear developers,
The
FormatterATT
module appends the operand-size suffix for instruction usingVSIB
.For instance, the opcode
c42289914c3afc
is disassembled asvpgatherqqq %xmm14, -0x04(%rdx,%xmm15,1), %xmm9
.Yet, in case of
vpgather
, the operand-size is already part of the mnemonic. The extra suffix makes the printed disassembly invalid.I am not sure, but I think it is the same for other mnemonics using a
VSIB
operand.Would it make sense to remove the second case here ?
https://github.com/zyantific/zydis/blob/bffbb610cfea643b98e87658b9058382f7522807/src/FormatterATT.c#L306C14-L306C15
Regards,
The text was updated successfully, but these errors were encountered: