Skip to content

Commit

Permalink
EVM initialize regs_read and regs_write (capstone-engine#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber authored and aquynh committed Jun 15, 2018
1 parent 36d4585 commit ad88f6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/EVM/EVMDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ bool EVM_getInstruction(csh ud, const uint8_t *code, size_t code_len,
memset(&MI->flat_insn->detail->evm, 0, sizeof(cs_evm));
EVM_get_insn_id((cs_struct *)ud, MI->flat_insn, opcode);

MI->flat_insn->detail->regs_read_count = 0;
MI->flat_insn->detail->regs_write_count = 0;
MI->flat_insn->detail->groups_count = 0;

if (MI->flat_insn->detail->evm.pop) {
Expand Down

0 comments on commit ad88f6c

Please sign in to comment.