corrects safety check for Stream::readLongString

This commit is contained in:
Azaezel 2016-06-08 15:28:40 -05:00
parent 5122360552
commit fc110706a3

View file

@ -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;