mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-24 05:59:45 +00:00
arm: reset IT block before cs_disasm(). this fixes issue #643
This commit is contained in:
parent
977e893bc2
commit
c1d2f1eeda
3
cs.c
3
cs.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user