arm64: zeroout a whole cs_arm64 struct of MCI in *getInstruction().

v2
Nguyen Anh Quynh 11 years ago
parent aaddb25453
commit eccb9da7a8
  1. 2
      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)

Loading…
Cancel
Save