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-17 11:32:02 +01:00
2019-09-30 22:43:18 -07:00
2020-08-18 23:09:43 -07:00
2021-07-06 10:12:23 +01:00
2021-07-17 11:32:02 +01:00
2020-08-18 23:09:43 -07:00
2020-08-18 23:09:43 -07:00
2011-04-13 19:05:41 -05:00
2019-10-18 21:07:36 -07:00

SourceMod

General

Development

Contact

  • Connect with us on GameSurge IRC in #sourcemod
  • Alternatively feel free to join our Discord server

License

SourceMod is licensed under the GNU General Public License version 3. Special exceptions are outlined in the LICENSE.txt file inside of the licenses folder.

S
Description
No description provided
Readme
45 MiB
Languages
C 59.7%
C++ 18%
HTML 4.8%
Roff 3.8%
SourcePawn 3.4%
Other 10%