Go to file
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
.github Start using Github Actions (#1488) 2021-05-09 01:46:08 +02:00
bridge/include Revert "Add HookPluginUnload() and UnhookPluginUnload() functions" 2021-05-24 14:30:16 -07:00
configs Removing old GeoIP.dat (#1533) 2021-07-17 11:32:02 +01:00
core Add OnMapInit forward and deprecate OnLevelInit 2021-07-17 20:52:51 +01:00
editor Added AMXX Pawn geshi generation script. 2010-08-23 13:53:44 -04:00
extensions Remove entity lump manipulation from OnLevelInit 2021-07-17 20:52:51 +01:00
gamedata gamedata: SetCollisionGroup signatures for L4D (#1514) 2021-06-29 01:13:56 -07:00
licenses Fix quote mismatch (#1092) 2019-09-30 22:43:18 -07:00
loader Update to AMBuild 2.2. 2020-08-18 23:09:43 -07:00
plugins Add OnMapInit forward and deprecate OnLevelInit 2021-07-17 20:52:51 +01:00
public Handle detour patches across page boundaries (#1535) 2021-07-17 20:53:25 +01:00
sourcepawn@91b4bd5a91 Update SourcePawn 2021-07-06 10:12:23 +01:00
tools Removing old GeoIP.dat (#1533) 2021-07-17 11:32:02 +01:00
translations Standardize some spacing in translation phrases (#1254) 2020-05-08 14:55:05 -07:00
versionlib Update to AMBuild 2.2. 2020-08-18 23:09:43 -07:00
.arcconfig Add a .arcconfig file so that arc works 2013-10-15 22:57:59 +01:00
.gitattributes NPOTB: Correct GitHub's Linguist inaccuracies (#1096) 2019-10-07 19:14:09 +01:00
.gitignore Update to AMBuild 2.2. 2020-08-18 23:09:43 -07:00
.gitmodules Use upstream SourcePawn as a submodule. 2015-03-15 16:38:38 -07:00
.travis.yml Prefer python3 over python(2) in checkout-deps (#1424) 2021-03-07 13:50:15 +01:00
AMBuildScript Start using Github Actions (#1488) 2021-05-09 01:46:08 +02:00
appveyor.yml Remove cloning of Dota 2 SDK in CI 2020-07-30 11:37:00 -07:00
changelog.txt Triggering a build. 2011-04-13 19:05:41 -05:00
configure.py Start using Github Actions (#1488) 2021-05-09 01:46:08 +02:00
product.version Bump version to 1.11. 2019-10-18 21:07:36 -07:00
pushbuild.txt NPOTB: Trigger hl2sdk-csgo changes (#1316) 2020-07-24 00:19:58 -07:00
README.md Incorperate Licensing Into Project Tree (#961) 2019-04-12 12:10:13 -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.