You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that my issue doesn't exist yet in the issue tracker
Operating System and Version
Windows 10
Game / AppID and Version
CS:S (240)
SourceMod Version
1.12.0.1287
Metamod:Source Version
master branch
Version Verification
I have updated SourceMod to the latest version and the issue persists
I have updated SourceMod to the latest snapshot and the issue persists
I have updated Metamod:Source to the latest snapshot and the issue persists
Updated SourceMod Version
No response
Updated Metamod:Source Version
No response
Description
If you construct a thiscall DynamicDetour and don't add any parameters then ConstructCallingConvention() will prepend the this arg/register to vecArgTypes and UpdateRegisterArgumentSizes() will try to index through (an empty) setup->params for the size of vecArgTypes.
Prerequisites
Operating System and Version
Windows 10
Game / AppID and Version
CS:S (240)
SourceMod Version
1.12.0.1287
Metamod:Source Version
master branch
Version Verification
Updated SourceMod Version
No response
Updated Metamod:Source Version
No response
Description
If you construct a thiscall
DynamicDetour
and don't add any parameters thenConstructCallingConvention()
will prepend thethis
arg/register tovecArgTypes
andUpdateRegisterArgumentSizes()
will try to index through (an empty)setup->params
for the size ofvecArgTypes
.sourcemod/extensions/dhooks/dynhooks_sourcepawn.cpp
Lines 236 to 267 in b71d3c0
sourcemod/extensions/dhooks/dynhooks_sourcepawn.cpp
Lines 303 to 328 in b71d3c0
Steps to Reproduce
The text was updated successfully, but these errors were encountered: