• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

SubString - partial bounds checking

Status
Not open for further replies.
Level 13
Joined
Nov 7, 2014
Messages
571
SubString - partial bounds checking

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)) // ?
 
Status
Not open for further replies.
Top