From 20b98c4a70a3b9dfe5d0ae7b2cb63da4caa6affe Mon Sep 17 00:00:00 2001 From: flobernd Date: Thu, 26 Oct 2017 20:16:37 +0200 Subject: [PATCH] Minor bugfixes --- src/Decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Decoder.c b/src/Decoder.c index 62b7cad..267eb32 100644 --- a/src/Decoder.c +++ b/src/Decoder.c @@ -1096,7 +1096,7 @@ static void ZydisSetOperandSizeAndElementInfo(ZydisDecoderContext* context, case ZYDIS_INSTRUCTION_ENCODING_3DNOW: case ZYDIS_INSTRUCTION_ENCODING_XOP: case ZYDIS_INSTRUCTION_ENCODING_VEX: - if (operand->mem.type != ZYDIS_MEMOP_TYPE_MEM) + if (operand->mem.type == ZYDIS_MEMOP_TYPE_AGEN) { ZYDIS_ASSERT(definition->size[context->eoszIndex] == 0); operand->size = instruction->addressWidth;