aboutsummaryrefslogtreecommitdiff
path: root/subhook_private.h
AgeCommit message (Collapse)AuthorFilesLines
2023-02-10Add flag to support allocation of trampolines within 32-bit offset range of ↵Zeex1-1/+1
target code on 64-bit Windows Plus minor formatting fixes and more documentation for flags. Fixes #9
2020-11-02Fix segfault in subhook_new()Zeex1-1/+1
This fixes #51.
2020-11-02Fix address overflow in trampolineZeex1-1/+3
Allocate memory for storing the trampoline code via mmap() with MAP_32BIT flag to make sure that it stays withing 2GB range. Also, add missing calls to subhook_free() in the C test program (C++ calls it implicitly already via destructor).
2018-11-22Cleanup and code style fixseZeex1-1/+2
2018-09-06Rename "options" to "flags"Zeex1-1/+1
2018-09-03Clean up and improve commentsZeex1-1/+1
* Replace SUBHOOK_BITS equality comparisons with SUBHOOK_X86_64 macro definition checks (less error-prone) * Improve comments in subhook_disasm() and remove unused variable (address_size) * Update copyright year across all files
2017-10-31Replace 0 with NULLZeex1-0/+7
2016-08-13Improve C++ interfaceZeex1-1/+1
2016-07-24Convert tabs to spacesZeex1-9/+9
2016-07-24Return support for 32-bit jumps on x86-64Zeex1-0/+4
Add an option to allow the caller to decide whether to use 32-bit or 64-bit jumps (the latter requires almost 3 times more space (5 vs 14 bytes)). Also see: #13
2015-02-12Update yearZeex1-1/+1
2014-11-27Remove unused includesZeex1-0/+2
2014-11-27Add support for trampolinesZeex1-3/+4
2014-10-15Update copyright yearZeex1-1/+1
2014-10-04Small refactoring & cleanupZeex1-1/+1
2014-07-29Call subhook_unprotect() only on first installZeex1-1/+2
2013-12-15Revert "Move sources and headers to src and include"v0.1Zeex1-0/+37
This reverts commit 48e7a711aedbf25ead8f0f7c83f3ea3b997f7137.
2013-12-14Move sources and headers to src and includeZeex1-37/+0
2013-12-07Allocate whole struct in one malloc() callZeex1-4/+0
2013-12-05Add subhook_t typedefZeex1-2/+2
2013-12-05Remove subhook_unprotect() from public APIZeex1-0/+2
2013-05-18Make subhook_is_installed() part of the exported APIZeex1-1/+1
2013-01-16Update yearZeex1-1/+1
2013-01-15Move arch initialization/cleanup to subhook_arch_{new,free}Zeex1-0/+3
2013-01-13First commitZeex1-0/+36