From 20f013ae6a29317629ad5b30efaaa3affff54263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Recoules?= Date: Tue, 11 Feb 2025 12:31:09 +0100 Subject: [PATCH] Fix ATT Formatter VSIB extra operand-size suffix (#550) --- src/FormatterATT.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FormatterATT.c b/src/FormatterATT.c index 462ba449..5c37470b 100644 --- a/src/FormatterATT.c +++ b/src/FormatterATT.c @@ -302,8 +302,7 @@ ZyanStatus ZydisFormatterATTPrintMnemonic(const ZydisFormatter* formatter, { const ZydisDecodedOperand* const operand = &context->operands[i]; if ((operand->type == ZYDIS_OPERAND_TYPE_MEMORY) && - ((operand->mem.type == ZYDIS_MEMOP_TYPE_MEM) || - (operand->mem.type == ZYDIS_MEMOP_TYPE_VSIB))) + (operand->mem.type == ZYDIS_MEMOP_TYPE_MEM)) { size = ZydisFormatterHelperGetExplicitSize(formatter, context, operand); break;