diff --git a/include/unicorn/unicorn.h b/include/unicorn/unicorn.h index 31d752e0..9dde3378 100644 --- a/include/unicorn/unicorn.h +++ b/include/unicorn/unicorn.h @@ -248,6 +248,8 @@ typedef enum uc_hook_type { // Hook type for all events of illegal memory access #define UC_HOOK_MEM_INVALID (UC_HOOK_MEM_UNMAPPED + UC_HOOK_MEM_PROT) // Hook type for all events of valid memory access +// NOTE: UC_HOOK_MEM_READ is triggered before UC_HOOK_MEM_READ_PROT and UC_HOOK_MEM_READ_UNMAPPED, so +// this hook may technically trigger on some invalid reads. #define UC_HOOK_MEM_VALID (UC_HOOK_MEM_READ + UC_HOOK_MEM_WRITE + UC_HOOK_MEM_FETCH) /*