From bc4e264f4002a101b27083c3d6b8061b03f7657c Mon Sep 17 00:00:00 2001 From: kabeor <1597915586@qq.com> Date: Mon, 28 Feb 2022 13:26:08 +0800 Subject: [PATCH] fixed incorrect MI->ac_idx leading to wrong AArch64 InsnOp access printing --- arch/AArch64/AArch64InstPrinter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/AArch64/AArch64InstPrinter.c b/arch/AArch64/AArch64InstPrinter.c index 31af0408..790f195e 100644 --- a/arch/AArch64/AArch64InstPrinter.c +++ b/arch/AArch64/AArch64InstPrinter.c @@ -848,6 +848,7 @@ static void printOperand(MCInst *MI, unsigned OpNum, SStream *O) access = get_op_access(MI->csh, MCInst_getOpcode(MI), OpNum); MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].access = access; + MI->ac_idx++; #endif MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].type = ARM64_OP_REG; MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].reg = Reg;