mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +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;
|
||||
read(&len);
|
||||
if(len > maxStringLen)
|
||||
if(len >= maxStringLen)
|
||||
{
|
||||
m_streamStatus = IOError;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue