_v3_old
Nguyen Anh Quynh 10 years ago
parent dfde75c379
commit 611b0c5c22
  1. 6
      cs.c

@ -447,12 +447,12 @@ size_t cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, si
total_size = sizeof(cs_insn) * cache_size;
total = cs_mem_malloc(total_size);
if (total == NULL)
{
//malloc failed
if (total == NULL) {
// insufficient memory
handle->errnum = CS_ERR_MEM;
return 0;
}
insn_cache = total;
while (size > 0) {

Loading…
Cancel
Save