From 9b744da32e64d8a6cd342faba8fc3232884d60f2 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 24 Jan 2015 23:38:12 +0100 Subject: Uid index + query using that index. ...and a couple of other fixes. --- common/resourceaccess.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/resourceaccess.cpp') diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 5f04db8..73a01ca 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp @@ -298,6 +298,7 @@ bool ResourceAccess::processMessageBuffer() { static const int headerSize = Commands::headerSize(); if (d->partialMessageBuffer.size() < headerSize) { + qWarning() << "command too small"; return false; } @@ -306,6 +307,7 @@ bool ResourceAccess::processMessageBuffer() const uint size = *(int*)(d->partialMessageBuffer.constData() + sizeof(int) + sizeof(uint)); if (size > (uint)(d->partialMessageBuffer.size() - headerSize)) { + qWarning() << "command too small"; return false; } -- cgit v1.2.3