mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
Merge pull request #1639 from Azaezel/StreamOverflow
corrects safety check for Stream::readLongString
This commit is contained in:
commit
236edb3384
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ void Stream::readLongString(U32 maxStringLen, char *stringBuf)
|
||||||
{
|
{
|
||||||
U32 len;
|
U32 len;
|
||||||
read(&len);
|
read(&len);
|
||||||
if(len > maxStringLen)
|
if(len >= maxStringLen)
|
||||||
{
|
{
|
||||||
m_streamStatus = IOError;
|
m_streamStatus = IOError;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue