Files
sourcemod/public
Asher Baker 5b7c9c5845 Handle detour patches across page boundaries (#1535)
On Linux if a detour crossed a page boundary we would only change the
memory protection of the first page (as we were aligning the address as
required, but not taking into account the length).

I don't have an easy way to test this but it looks correct. `addr + len`
doesn't appear to need to be aligned though, so another option could be
to use `(addr - startPage) + length` as len.

Also fixed a non-zero offset being passed into CDetour's ApplyPatch
function - this is never done internally anywhere, but it doesn't hurt
to fix it.

Fixes #984
2021-07-17 20:53:25 +01:00
..
2021-07-01 22:40:03 +01:00
2008-03-30 07:00:22 +00:00
2018-08-13 23:03:48 +01:00
2017-11-20 21:24:01 -08:00