Address 0x4F228DC is 36 bytes inside a block of size 51 alloc'd -------- 第36个字节之后有东西没初始化

Address 0x4F228DC is 36 bytes inside a block of size 51 alloc'd -------- 第36个字节之后有东西没初始化

==15482== Thread 3:
==15482== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==15482==    at 0x3AD9A0D201: send (in /lib64/libpthread-2.5.so)
==15482==    by 0x424B62: CRecvAndSendTask::SendData() (recvandsendtask.cpp:166)
==15482==    by 0x41D591: CCommonTask::SendProcess() (CommonTask.cpp:134)
==15482==    by 0x4248D5: CRecvAndSendTask::HandleProcess(int) (recvandsendtask.cpp:73)
==15482==    by 0x430297: CRealEpoll::EpollWait() (myepoll.cpp:96)
==15482==    by 0x42372D: CNetProcessThread::HandleProcess() (netprocessthread.cpp:87)
==15482==    by 0x423A64: CNetProcessThread::Run() (netprocessthread.cpp:46)
==15482==    by 0x41F7EC: CCommonThread::ThreadEntry(void*) (commonthread.cpp:73)
==15482==    by 0x3AD9A062F6: start_thread (in /lib64/libpthread-2.5.so)
==15482==    by 0x3AD8ED1E3C: clone (in /lib64/libc-2.5.so)
==15482==  Address 0x4F228DC is 36 bytes inside a block of size 51 alloc'd
==15482==    at 0x4A05CB9: operator new[](unsigned long) (vg_replace_malloc.c:199)
==15482==    by 0x41D00D: CCommonTask::SendToList(char const*, int) (CommonTask.cpp:293)
==15482==    by 0x41D0F0: CCommonTask::PutMsgToSendList(char const*, int) (CommonTask.cpp:175)
==15482==    by 0x416A6F: RServerRecvAndSendTask::ProcessPacket(MYFRAMECOMMON::tagSERVERCOMMANDPACKET*) (RServerRecvAndSendTask.cpp:184)
==15482==    by 0x41CF42: CCommonTask::ParseOnePacket() (CommonTask.cpp:231)
==15482==    by 0x41D779: CCommonTask::RecvProcess() (CommonTask.cpp:109)
==15482==    by 0x424891: CRecvAndSendTask::HandleProcess(int) (recvandsendtask.cpp:63)
==15482==    by 0x430297: CRealEpoll::EpollWait() (myepoll.cpp:96)
==15482==    by 0x42372D: CNetProcessThread::HandleProcess() (netprocessthread.cpp:87)
==15482==    by 0x423A64: CNetProcessThread::Run() (netprocessthread.cpp:46)
==15482==    by 0x41F7EC: CCommonThread::ThreadEntry(void*) (commonthread.cpp:73)
==15482==    by 0x3AD9A062F6: start_thread (in /lib64/libpthread-2.5.so)

你可能感兴趣的:(Address 0x4F228DC is 36 bytes inside a block of size 51 alloc'd -------- 第36个字节之后有东西没初始化)