Originally found for call and jmp but more instructions could be affected.
ZydisFormatterATTPrintMnemonic fails to properly append size suffix because:
- Condition is too strict and filters out
rel32 operands:
|
if ((operand->type == ZYDIS_OPERAND_TYPE_MEMORY) && |
ZydisFormatterHelperGetExplicitSize contains this condition which filters out jumps, calls and possibly some other instructions:
|
if (context->instruction->operand_count_visible < 2) |
Originally found for
callandjmpbut more instructions could be affected.ZydisFormatterATTPrintMnemonicfails to properly append size suffix because:rel32operands:zydis/src/FormatterATT.c
Line 331 in 41011c6
ZydisFormatterHelperGetExplicitSizecontains this condition which filters out jumps, calls and possibly some other instructions:zydis/src/FormatterBase.c
Line 111 in ebc2ccf