From b261dd447de7a925311fd4169730153214695a3f Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 6 Aug 2024 19:13:06 +0300 Subject: [PATCH] Only set bcstSize when it's required --- bddisasm/bdx86_decoder.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bddisasm/bdx86_decoder.c b/bddisasm/bdx86_decoder.c index 6fd057e..31f3ac8 100644 --- a/bddisasm/bdx86_decoder.c +++ b/bddisasm/bdx86_decoder.c @@ -1441,14 +1441,14 @@ NdParseOperand( ND_UINT8 opt, ops, opf, opa, opd, opb; ND_REG_SIZE vsibRegSize; ND_UINT8 vsibIndexSize, vsibIndexCount; - ND_OPERAND_SIZE size, bcstSize; + ND_OPERAND_SIZE size; ND_BOOL width; // pre-init status = ND_STATUS_SUCCESS; vsibRegSize = 0; vsibIndexSize = vsibIndexCount = 0; - size = bcstSize = 0; + size = 0; // Get actual width. width = Instrux->Exs.w && !(Instrux->Attributes & ND_FLAG_WIG); @@ -1877,7 +1877,7 @@ NdParseOperand( } // Store operand info. - operand->Size = bcstSize = size; + operand->Size = size; // // Fill in the operand type. @@ -2778,6 +2778,7 @@ memory: // bcstSize / rawSize. if (Instrux->HasBroadcast) { + ND_OPERAND_SIZE bcstSize = size; operand->Info.Memory.HasBroadcast = ND_TRUE; if (opd & ND_OPD_B32)