Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
arm64: zeroout a whole cs_arm64 struct of MCI in *getInstruction().
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Jun 17, 2014
1 parent aaddb25 commit eccb9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/AArch64/AArch64Disassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eccb9da

Please sign in to comment.