mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 23:40:25 +00:00
sparc: initialize detail->sparc in Sparc_getInstruction. bug reported by Ben Nagy
This commit is contained in:
parent
39d6b2f066
commit
e1fc8a83ba
@ -232,7 +232,7 @@ bool Sparc_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *
|
||||
return MCDisassembler_Fail;
|
||||
|
||||
if (MI->flat_insn->detail) {
|
||||
memset(&MI->flat_insn->detail->sparc, 0, offsetof(cs_sparc, operands));
|
||||
memset(&MI->flat_insn->detail->sparc, 0, sizeof(cs_sparc));
|
||||
}
|
||||
|
||||
Result = decodeInstruction_4(DecoderTableSparc32, MI, Insn, address,
|
||||
|
Loading…
Reference in New Issue
Block a user