- Joined
- Nov 7, 2014
- Messages
- 571
SubString - partial bounds checking
It seems that the
I tried to "dump" some memory with it but I didn't find anything useful, only file names (stuff like: InventoryItems\\PotofGold\\PotofGold.mdl, UI\\Widgets\\ToolTips\\Human\\human-tooltip-background.blp, etc), function names (natives, bj functions, vjass functions) and it seems you can't "go beyond offset: -32768" after that you get the empty string/null string.
PS:
It seems that the
native SubString takes string source, integer start, integer end returns string
function doesn't have bounds checking for the offset/start parameter.I tried to "dump" some memory with it but I didn't find anything useful, only file names (stuff like: InventoryItems\\PotofGold\\PotofGold.mdl, UI\\Widgets\\ToolTips\\Human\\human-tooltip-background.blp, etc), function names (natives, bj functions, vjass functions) and it seems you can't "go beyond offset: -32768" after that you get the empty string/null string.
PS:
call BJDebugMsg(SubString(GetPlayerName(GetLocalPlayer()), -64, 0)) // ?