Torque3D/Engine/source/core/strings
Jeff Hutchinson 2e8a0185b3 Fix buffer overflow issue in StringUnit::getWords.
getWords("a b c d", 2); // "c d"

that turns into this inside the engine:

getWords("a b c d", 2, 1000000);

that code after parsing d goes string++ which passes over the null character. This now enforces that check. Found this with the new script interpreter...how this wasn't blowing up before is beyond me.
2021-06-18 21:08:03 -04:00
..
findMatch.cpp Added D3D error code interpreter 2019-08-12 01:04:17 -05:00
findMatch.h Engine directory for ticket #1 2012-09-19 11:15:01 -04:00
stringFunctions.cpp Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense. 2020-10-03 14:37:55 +02:00
stringFunctions.h Better to use strlcat and strlcpy and move them to the cpp file. Provided an implementation for platforms that don't support them (macOS only currently) 2018-03-08 00:45:24 -05:00
stringUnit.cpp Fix buffer overflow issue in StringUnit::getWords. 2021-06-18 21:08:03 -04:00
stringUnit.h Engine directory for ticket #1 2012-09-19 11:15:01 -04:00
unicode.cpp Fixed V610: Undefined behavior 2017-04-27 12:13:05 +03:00
unicode.h Rename the memory allocating versions to make prev error less likely 2015-01-26 16:52:06 -05:00