dyfet/ccrtp — pull request #3 by tmatth (2013-05-29 15:54:09+00:00)
Title: rtcp: zero-initialize buffers

Using valgrind with SFLphone, I get the following warning because ccrtp sends uninitialized buffers as its first RTCP packets:

```
==30170== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
==30170== at 0x3535A0E6F3: ??? (syscall-template.S:81)
==30170== by 0x48FB18: ost::RTPBaseUDPIPv4Socket::send(unsigned char const*, unsigned long) (channel.h:156)
==30170== by 0x492A19: ost::TRTPSessionBase::sendControl(unsigned char const*, unsigned long) (rtp.h:276)
==30170== by 0x354BE1F9D9: ost::QueueRTCPManager::sendControlToDestinations(unsigned char*, unsigned long) (control.cpp:1150)
==30170== by 0x354BE1FBF5: ost::QueueRTCPManager::dispatchControlPacket() (control.cpp:968)
==30170== by 0x354BE1FD1E: ost::QueueRTCPManager::controlTransmissionService() (control.cpp:276)
==30170== by 0x492C55: ost::SingleThreadRTPSession::controlTransmissionService() (rtp.h:526)
==30170== by 0x4926F6: ost::SingleThreadRTPSession::run() (rtp.h:560)
==30170== by 0x3540A221B1: exec_thread (thread.cpp:92)
==30170== by 0x3535A07D14: start_thread (pthread_create.c:308)
==30170== by 0x3534EF248C: clone (clone.S:114)
==30170== Address 0xaf93af4 is 20 bytes inside a block of size 1,500 alloc'd
==30170== at 0x4A0887C: malloc (vg_replace_malloc.c:270)
==30170== by 0x353E64A1D4: cpr_memalloc (cpr.cpp:156)
==30170== by 0x497626: operator new[](unsigned long) (cpr.h:94)
==30170== by 0x354BE165B3: ost::RTCPCompoundHandler::RTCPCompoundHandler(unsigned short) (rtcppkt.cpp:85)
==30170== by 0x354BE2122A: ost::QueueRTCPManager::QueueRTCPManager(unsigned int, ost::RTPApplication&) (control.cpp:62)
==30170== by 0x4934AB: ost::AVPQueue::AVPQueue(unsigned int, ost::RTPApplication&) (cqueue.h:738)
==30170== by 0x4937FC: ost::TRTPSessionBase::TRTPSessionBase(ost::IPV4Host const&, unsigned short, unsigned short, unsigned int, ost::RTPApplication&) (rtp.h:101)
==30170== by 0x4936B9: ost::SingleThreadRTPSession::SingleThreadRTPSession(ost::IPV4Host const&, unsigned short, unsigned short, int, unsigned int, ost::RTPApplication&) (rtp.h:435)
```
This commit ensures that they are zero-initialized when they are created.