Core/Misc: Fixed coverity issues

Uninitialized fields: CID 1354593, 1354595, 1354738
Unchecked return value: CID 1354558
Out of bounds access: CID 1352989, 1352993
Null pointer dereference: CID 1296286
This commit is contained in:
Shauren
2016-06-06 09:16:59 +02:00
parent d59bba3c5d
commit 8396dabdad
9 changed files with 39 additions and 38 deletions

View File

@@ -647,7 +647,7 @@ bool Battlenet::Session::ReadHeaderHandler()
bool Battlenet::Session::ReadDataHandler()
{
Header header;
header.ParseFromArray(_headerBuffer.GetReadPointer(), _headerBuffer.GetActiveSize());
ASSERT(header.ParseFromArray(_headerBuffer.GetReadPointer(), _headerBuffer.GetActiveSize()));
if (header.service_id() != 0xFE)
{