add check for mem_map(size=0) (#14)

This commit is contained in:
Ryan Hileman
2015-08-23 14:16:40 -07:00
parent ee9e2d6a12
commit 76d8541717
3 changed files with 9 additions and 0 deletions

View File

@ -116,6 +116,7 @@ typedef enum uc_err {
UC_ERR_CODE_INVALID, // Quit emulation due to invalid code address: uc_emu_start()
UC_ERR_HOOK, // Invalid hook type: uc_hook_add()
UC_ERR_INSN_INVALID, // Quit emulation due to invalid instruction: uc_emu_start()
UC_ERR_MAP, // Invalid memory mapping: uc_mem_map()
} uc_err;