fix missing HOOK_CODE bound check

This commit is contained in:
Ryan Hileman 2016-01-25 03:51:35 -08:00
parent 1974b23164
commit cee9a7d011

2
uc.c
View file

@ -1023,7 +1023,9 @@ void helper_uc_tracecode(int32_t size, uc_hook_type type, void *handle, int64_t
while (cur != NULL && !uc->stop_request) { while (cur != NULL && !uc->stop_request) {
hook = (struct hook *)cur->data; hook = (struct hook *)cur->data;
if (HOOK_BOUND_CHECK(hook, address)) {
((uc_cb_hookcode_t)hook->callback)(uc, address, size, hook->user_data); ((uc_cb_hookcode_t)hook->callback)(uc, address, size, hook->user_data);
}
cur = cur->next; cur = cur->next;
} }
} }