From 321de00f363f108d27b9c7afdac778ff658c12d5 Mon Sep 17 00:00:00 2001 From: lockbox Date: Mon, 18 Mar 2024 17:51:35 -0400 Subject: [PATCH] [typo]: Correctly document address parameter in mem hook callbacks --- include/unicorn/unicorn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/unicorn/unicorn.h b/include/unicorn/unicorn.h index 91b0019c..26f7549e 100644 --- a/include/unicorn/unicorn.h +++ b/include/unicorn/unicorn.h @@ -421,7 +421,7 @@ typedef enum uc_hook_type { Callback function for hooking memory (READ, WRITE & FETCH) @type: this memory is being READ, or WRITE - @address: address where the code is being executed + @address: address where memory is being written or read to @size: size of data being read or written @value: value of data being written to memory, or irrelevant if type = READ. @user_data: user data passed to tracing APIs @@ -435,7 +435,7 @@ typedef void (*uc_cb_hookmem_t)(uc_engine *uc, uc_mem_type type, PROT events) @type: this memory is being READ, or WRITE - @address: address where the code is being executed + @address: address where memory is being written or read to @size: size of data being read or written @value: value of data being written to memory, or irrelevant if type = READ. @user_data: user data passed to tracing APIs