commit | 56aa0ac3944cbd945cd503c26c22674ba821b8e8 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Wed Apr 27 14:43:10 2016 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Wed Apr 27 14:43:10 2016 +0800 |
tree | 1e3977406c0711161dff1be7d40de47b42510a96 | |
parent | ab93c00ea3ac8d5574d4e4996d58cddbd8e6374a [diff] |
arm: reset IT block before cs_disasm(). this fixes issue #643
diff --git a/cs.c b/cs.c index 36d5785..2e011ca 100644 --- a/cs.c +++ b/cs.c
@@ -562,6 +562,9 @@ 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;