Skip to content

Commit

Permalink
arm: reset IT block before cs_disasm(). this fixes issue capstone-eng…
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Apr 27, 2016
1 parent ab93c00 commit 56aa0ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@ size_t cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, si

handle->errnum = CS_ERR_OK;

// reset IT block of ARM structure
handle->ITBlock.size = 0;

#ifdef CAPSTONE_USE_SYS_DYN_MEM
if (count > 0 && count <= INSN_CACHE_SIZE)
cache_size = (unsigned int) count;
Expand Down

0 comments on commit 56aa0ac

Please sign in to comment.