Zeex
23bf37f44e
Fix compile error and clean up in *nix-specific code
2023-02-10 15:54:07 +06:00
Zeex
85a2406774
Add flag to support allocation of trampolines within 32-bit offset range of target code on 64-bit Windows
...
Plus minor formatting fixes and more documentation for flags.
Fixes #9
2023-02-10 00:02:01 +06:00
Zeex
6fae00efdf
Fix segfault in subhook_new()
...
This fixes #51 .
2020-11-02 20:15:12 +06:00
Zeex
a596f2b117
Add null check in subhok_free_code()
2020-11-02 03:46:00 +06:00
Zeex
314603bc42
Fix address overflow in trampoline
...
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).
2020-11-02 03:19:54 +06:00
Zeex
12732c1d1d
Cleanup and code style fixse
2018-11-22 05:29:35 +06:00
Zeex
12b527d642
Clean up and improve comments
...
* 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
2018-09-03 20:10:28 +06:00
Zeex
bda8b5f905
Convert tabs to spaces
2016-07-24 05:18:51 +06:00
Zeex
762679a333
Update year
2015-02-12 21:15:37 +06:00
Zeex
1375e4c911
Add support for trampolines
2014-11-27 01:27:30 +06:00
Zeex
4600350ebf
Update copyright year
2014-10-15 14:25:56 +07:00
Zeex
9e84a215c1
Small refactoring & cleanup
2014-10-04 17:38:10 +07:00
Zeex
2320184aeb
Revert "Move sources and headers to src and include"
...
This reverts commit 48e7a711ae .
2013-12-15 02:00:51 +07:00
Zeex
48e7a711ae
Move sources and headers to src and include
2013-12-14 20:38:09 +07:00
Zeex
88d878cc68
Fix coding style
2013-12-06 13:52:08 +07:00
Zeex
6c7747a542
Remove redundant includes
2013-12-06 13:49:38 +07:00
Zeex
0ee3ab3c07
Remove subhook_unprotect() from public API
2013-12-05 01:49:33 +07:00
Zeex
3d0c4f9c84
Update year
2013-01-16 02:41:49 +07:00
Zeex
f1000e9158
First commit
2013-01-13 22:15:49 +07:00