2934 Syscall param socketcall send msg points to uninitialised byte 29

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
==2934== Syscall param socketcall.send(msg) points to uninitialised byte(s)
==2934== at 0x43B8F18: send (in /lib/libc-2.5.1.so)
==2934== by 0x8054363: SdcpTcpComm<BTSocketServer>::send(SdcpPackageBuilder*) (SdcpTcpComm.h:311)
==2934== by 0x8062226: SdcpHandler::send(SdcpPackageBuilder*) (SdcpHandler.cpp:148)
==2934== by 0x809BFCB: Sub1Handler::process(ParsedPackage, bool) (SubHandler.cpp:34)
==2934== by 0x8062584: SdcpHandler::receiveEvent(SdcpComm*, ParsedPackage) (SdcpHandler.cpp:95)
==2934== by 0x80552A0: SdcpTcpComm<BTSocketServer>::receive() (SdcpTcpComm.h:239)
==2934== by 0x806A730: Server::mainLoop() (Server.cpp:75)
==2934== by 0x805B1AD: main (main.cpp:47)
==2934== Address 0x44A24FA is 10 bytes inside a block of size 45 alloc'd
==2934== at 0x401F587: malloc (vg_replace_malloc.c:149)
==2934== by 0x805474A: SdcpTcpComm<BTSocketServer>::send(std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >) (SdcpTcpComm.h:272)
==2934== by 0x8054363: SdcpTcpComm<BTSocketServer>::send(SdcpPackageBuilder*) (SdcpTcpComm.h:311)
==2934== by 0x8062226: SdcpHandler::send(SdcpPackageBuilder*) (SdcpHandler.cpp:148)
==2934== by 0x809BFCB: Sub1Handler::process(ParsedPackage, bool) (SubHandler.cpp:34)
==2934== by 0x8062584: SdcpHandler::receiveEvent(SdcpComm*, ParsedPackage) (SdcpHandler.cpp:95)
==2934== by 0x80552A0: SdcpTcpComm<BTSocketServer>::receive() (SdcpTcpComm.h:239)
==2934== by 0x806A730: Server::mainLoop() (Server.cpp:75)
==2934== by 0x805B1AD: main (main.cpp:47)
==2934== Use of uninitialised value of size 4
==2934== at 0x40CDBE8: _x86_AES_encrypt (in /lib/libcrypto.so.0.9.8h)