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
..
amtl@9472470b1a Update SourcePawn and AMTL 2021-07-01 22:40:03 +01:00
asm Fix warning/error on newer Clang versions from abort not being defined. 2018-05-06 10:28:24 -04:00
CDetour Handle detour patches across page boundaries (#1535) 2021-07-17 20:53:25 +01:00
doxygen
extensions Remove OnEntitySpawned C++ listener (#1342) 2020-08-26 12:53:31 +01:00
jit 64-bit support for CSGO on Linux and macOS (#705) 2017-12-20 01:56:23 -06:00
libudis86 64-bit support for CSGO on Linux and macOS (#705) 2017-12-20 01:56:23 -06:00
mms_sample_ext
sample_ext Add sdk'less sample_ext and update -std to 14 (#1456) 2021-03-29 22:12:45 +01:00
sample_ext_nosdk Add sdk'less sample_ext and update -std to 14 (#1456) 2021-03-29 22:12:45 +01:00
AutoHandleRooter.h
compat_wrappers.h Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
IAdminSystem.h Move adminsys and more natives from core to logic. 2014-05-29 13:31:12 -04:00
IADTFactory.h
ICellArray.h Add ICellArray and create/free in ISourceMod 2016-08-21 21:32:23 +02:00
IDBDriver.h
IExtensionSys.h Fix Miscellaneous Regressions and UBs (#1022) 2019-05-28 18:04:08 -07:00
IForwardSys.h Don't break backwards compatibility with unmanaged forwards 2017-08-25 23:23:50 +02:00
IGameConfigs.h Make IGameConfig::GetMemSig return value clearer (bug 6081, r=asherkin). 2014-03-29 14:22:53 -04:00
IGameHelpers.h Add support for retrieving game server Steam Id (bug 6404). (#495) 2016-04-26 23:17:08 -04:00
IHandleSys.h
ILibrarySys.h
IMemoryUtils.h
IMenuManager.h menusys: add MenuShufflePerClient native (#1073) 2020-08-06 20:31:00 -07:00
IPlayerHelpers.h Unify Player::GetSteamXId returns, clarify doc, and fix checks 2014-09-09 17:57:54 -07:00
IPluginSys.h Add an OnPluginWillUnload callback that precedes OnPluginEnd(). 2015-11-01 00:30:37 -07:00
IRootConsoleMenu.h Replace the AddRootConsoleCommand API to not expose internal structures. 2015-08-30 21:01:03 -07:00
IShareSys.h
ISourceMod.h Burninate IDataPack (#864) 2018-08-13 23:03:48 +01:00
ITextParsers.h
IThreader.h Pare down ThreadSupport and remove ancient thread code. 2020-05-13 00:35:29 -07:00
ITimerSystem.h
ITranslator.h Add Translation Natives (#669) 2017-11-20 21:24:01 -08:00
IUserMessages.h
metamod_wrappers.h
ReentrantList.h Replace ke::LinkedList with std::list. 2020-05-31 23:19:41 -07:00
sm_argbuffer.h Fix ArgBuffer String Serialization (#999) 2019-05-04 01:46:55 -07:00
sm_invalidparamhandler.h handlesys: Output allocation timestamp during panic (#1110) 2020-07-09 18:21:45 -07:00
sm_memtable.h Deduplicate a number of files used by extensions by moving them to the public directory (bug 5341, r=psychonic). 2014-04-23 21:19:28 -05:00
sm_namehashset.h Replace AString with std::string. 2020-05-20 17:57:18 -07:00
sm_platform.h handlesys: Output allocation timestamp during panic (#1110) 2020-07-09 18:21:45 -07:00
sm_queue.h Move DBManager and DB natives from core to logic (bug 5953, r=fyren). 2013-10-09 08:43:08 -04:00
sm_stringhashmap.h Replace AString with std::string. 2020-05-20 17:57:18 -07:00
sm_trie_tpl.h trie: implement clone() method (#852) 2020-07-14 20:11:23 -07:00
smsdk_ext.cpp Migrate extensions to common AMTL string funcs (#785) 2018-03-25 13:00:53 -07:00
smsdk_ext.h Migrate extensions to common AMTL string funcs (#785) 2018-03-25 13:00:53 -07:00
sourcemod_version.h Bump version for non-VCS builds (#1243) 2020-04-27 15:50:03 +01:00
vtable_hook_helper.h Change SDKHooks to VTable Hooks (bug 6070, r=psychonic). 2014-03-23 22:11:06 -06:00