diff --git a/arch/AArch64/AArch64Disassembler.c b/arch/AArch64/AArch64Disassembler.c index a0fa2735..8a3f2079 100644 --- a/arch/AArch64/AArch64Disassembler.c +++ b/arch/AArch64/AArch64Disassembler.c @@ -273,7 +273,7 @@ static DecodeStatus _getInstruction(cs_struct *ud, MCInst *MI, } if (MI->flat_insn->detail) { - memset(&MI->flat_insn->detail->arm64, 0, offset_of(cs_arm64, operands)); + memset(&MI->flat_insn->detail->arm64, 0, sizeof(cs_arm64)); } if (ud->big_endian)