forked from qt-creator/qt-creator
Clang: Fix incorrect size check of message reader.
Change-Id: Ia734c5234d899e71da46d8111299cf8f86dc67c2 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
committed by
David Schulz
parent
29e51517f4
commit
80b149935e
@@ -92,7 +92,7 @@ void ReadMessageBlock::resetCounter()
|
||||
|
||||
bool ReadMessageBlock::isTheWholeMessageReadable(QDataStream &in)
|
||||
{
|
||||
if (ioDevice->bytesAvailable() == 0)
|
||||
if (ioDevice->bytesAvailable() < sizeof(blockSize))
|
||||
return false;
|
||||
|
||||
if (blockSize == 0)
|
||||
|
||||
Reference in New Issue
Block a user