From c4194014ab2b741390fcdb815bd7a0d6969ec24b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 18 Apr 2011 22:05:40 +0000 Subject: [PATCH] Fixed looking for the right instructions when there are no arguments --- src/arch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch.c b/src/arch.c index 31f3e2f..b4636fa 100644 --- a/src/arch.c +++ b/src/arch.c @@ -212,6 +212,8 @@ static int _call_operands(Arch * arch, ArchInstruction * instruction, ArchOperandDefinition definition; ArchOperand * operand; + if(call->operands_cnt == 0 && AO_GET_TYPE(instruction->op1) != AOT_NONE) + return -1; for(i = 0; i < call->operands_cnt; i++) { definition = (i == 0) ? instruction->op1 : ((i == 1)