Vaxry
9b006b2c85
plugin/hook: disallow multiple hooks per function ( #12320 )
...
this was never safe. After recent changes, it's become even less so. Just disallow it.
ref #11992
2025-11-16 12:01:48 +00:00
5a20862126
hookSystem: use a full trampo setup for hooks
...
instead of planting a longjmp at the fn head, make a shortjmp to a launch trampo
this helps with shortjmps that can be in the fn and will break when relocated. They are very unlikely to occur within the first 5 bytes (jmp rel32) but can happen in the first 10 or so (longjmp)
fixes csgo-vk-fix on latest main with release building on gcc / clang
2025-10-07 12:49:36 +01:00
e999ad664d
hookSystem: avoid using manual mem management, fix leak
...
fixes #10790
2025-06-19 11:58:12 +02:00
davc0n
2d6ca96e07
plugins: refactor class member vars ( #10257 )
2025-05-03 16:06:24 +02:00
Vaxry
0a1ae48a9f
core: move all shared_ptrs from the STL to hyprutils ( #9143 )
2025-01-23 21:55:41 +01:00
0569b9c300
hooksystem: manually map trampoline addresses
...
better patching of rip calls as we are close enough to just change them up
2024-04-04 18:50:37 +01:00
Vaxry
7474c81958
pluginapi: Trampoline hooks %rip patching improvements ( #4256 )
...
---------
Co-authored-by: Jan Beich <jbeich@FreeBSD.org>
2023-12-27 11:43:04 +01:00
François Conzelmann
4a42344e97
style/ci: apply clang-format and verify it in ci ( #4039 )
...
* style: apply clang-format
* ci: add new clang-format job to CI
2023-12-06 22:54:56 +00:00
vaxerski
03d7651916
Plugin Hooks: fix original bytes on %rip accesses
2023-02-27 19:17:58 +00:00
vaxerski
c5d741fb39
Plugin Hooks: fix calls to %rip offsets
2023-02-27 18:34:53 +00:00
Vaxry
8b81f41e52
Plugin System ( #1590 )
...
---------
Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2023-02-27 12:32:38 +00:00