mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 12:38:16 +00:00
fix missing HOOK_CODE bound check
This commit is contained in:
parent
1974b23164
commit
cee9a7d011
1 changed files with 3 additions and 1 deletions
4
uc.c
4
uc.c
|
@ -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) {
|
||||
hook = (struct hook *)cur->data;
|
||||
((uc_cb_hookcode_t)hook->callback)(uc, address, size, hook->user_data);
|
||||
if (HOOK_BOUND_CHECK(hook, address)) {
|
||||
((uc_cb_hookcode_t)hook->callback)(uc, address, size, hook->user_data);
|
||||
}
|
||||
cur = cur->next;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue