diff options
author | comex | 2015-01-24 21:59:37 -0500 |
---|---|---|
committer | comex | 2015-01-24 21:59:37 -0500 |
commit | 98afb15eaa8f8c31bf5763de0e3c83a845414b0a (patch) | |
tree | e603aae961ead4e596fc994ed06df884eaee7b9a /lib/substitute.h | |
parent | Add function to deal with mprotecting RW and back. A bit more complex than t... (diff) | |
download | substitute-98afb15eaa8f8c31bf5763de0e3c83a845414b0a.tar.gz |
...
Diffstat (limited to 'lib/substitute.h')
-rw-r--r-- | lib/substitute.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/substitute.h b/lib/substitute.h index 95f8436..250106b 100644 --- a/lib/substitute.h +++ b/lib/substitute.h @@ -51,6 +51,10 @@ enum { * SUBSTITUTE_DONT_STOP_THREADS */ SUBSTITUTE_ERR_NOT_ON_MAIN_THREAD, + /* substitute_hook_functions: destination was out of range, and mmap + * wouldn't give us a trampoline in range */ + SUBSTITUTE_ERR_OUT_OF_RANGE, + /* substitute_interpose_imports: couldn't redo relocation for an import * because the type was unknown */ SUBSTITUTE_ERR_UNKNOWN_RELOCATION_TYPE, @@ -66,7 +70,7 @@ enum { struct substitute_function_hook { void *function; void *replacement; - void *old_ptr; /* optional: out pointer to function pointer to call old impl */ + void *old_ptr; /* optional: out *pointer* to function pointer to call old impl */ }; /* Get a string representation for a SUBSTITUTE_* error code. */ |