patch hook bounds to be inclusive
This commit is contained in:
parent
2ac1281f82
commit
9f9bd7098b
|
@ -101,7 +101,7 @@ enum uc_hook_idx {
|
|||
|
||||
// if statement to check hook bounds
|
||||
#define HOOK_BOUND_CHECK(hh, addr) \
|
||||
((((addr) >= (hh)->begin && (addr) < (hh)->end) \
|
||||
((((addr) >= (hh)->begin && (addr) <= (hh)->end) \
|
||||
|| (hh)->begin > (hh)->end))
|
||||
|
||||
#define HOOK_EXISTS(uc, idx) ((uc)->hook[idx##_IDX].head != NULL)
|
||||
|
|
Loading…
Reference in New Issue