<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.PrformatHTMLCar
{mso-style-name:"Pr\00E9format\00E9 HTML Car";
mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML";
font-family:"Courier New";
mso-fareast-language:FR;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal> Hi Ross,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I know you don’t like valgrind tool, but it reports use of uninitialized memory :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><pre style='margin-left:35.4pt'><span lang=EN-US>Conditional jump or move depends on uninitialised value(s)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> (see: </span><a href="http://valgrind.org/docs/manual/mc-manual.html#mc-manual.uninitvals"><span lang=EN-US>http://valgrind.org/docs/manual/mc-manual.html#mc-manual.uninitvals</span></a><span lang=EN-US>)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> at 0x1036E23: RTCPInstance::enqueueReportBlock(RTPReceptionStats*) (RTCP.cpp:811)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1036D17: RTCPInstance::enqueueCommonReportSuffix() (RTCP.cpp:782)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1036BCC: RTCPInstance::addRR() (RTCP.cpp:744)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1036A3A: RTCPInstance::addReport() (RTCP.cpp:710)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1036767: RTCPInstance::sendReport() (RTCP.cpp:627)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1037594: SendRTCPReport (RTCP.cpp:965)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x10379C2: OnExpire (rtcp_from_spec.c:202)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x103740E: RTCPInstance::onExpire1() (RTCP.cpp:926)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x10369B7: RTCPInstance::onExpire(RTCPInstance*) (RTCP.cpp:693)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x10895D0: AlarmHandler::handleTimeout() (BasicTaskScheduler0.cpp:34)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1088419: DelayQueue::handleAlarm() (DelayQueue.cpp:184)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x108714D: BasicTaskScheduler::SingleStep(unsigned int) (BasicTaskScheduler.cpp:205)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x10854E3: BasicTaskScheduler0::doEventLoop(char*) (BasicTaskScheduler0.cpp:81)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> Uninitialised value was created by a heap allocation<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> at 0x4C27CC1: operator new(unsigned long) (vg_replace_malloc.c:261)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1026FCF: RTPReceptionStatsDB::noteIncomingSR(unsigned int, unsigned int, unsigned int, unsigned int) (RTPSource.cpp:134)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x103619B: RTCPInstance::incomingReportHandler1() (RTCP.cpp:445)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1035DDE: RTCPInstance::incomingReportHandler(RTCPInstance*, int) (RTCP.cpp:319)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x1086D2B: BasicTaskScheduler::SingleStep(unsigned int) (BasicTaskScheduler.cpp:146)<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> by 0x10854E3: BasicTaskScheduler0::doEventLoop(char*) (BasicTaskScheduler0.cpp:81)<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>A way to fix this is to initialize <o:p></o:p></span></p><pre style='margin-left:35.4pt'>void RTPReceptionStats::init(u_int32_t SSRC) {<o:p></o:p></pre><pre style='margin-left:35.4pt'> <span lang=EN-US>fSSRC = SSRC;<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> fTotNumPacketsReceived = 0;<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><span lang=EN-US> fTotBytesReceived_hi = fTotBytesReceived_lo = 0;<o:p></o:p></span></pre><pre style='margin-left:35.4pt'><b><span lang=EN-US>+ fBaseExtSeqNumReceived = 0;<o:p></o:p></span></b></pre><pre style='margin-left:35.4pt'><b><span lang=EN-US>+ fHighestExtSeqNumReceived = 0;<o:p></o:p></span></b></pre><pre style='margin-left:35.4pt'><span lang=EN-US> fHaveSeenInitialSequenceNumber = False;<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Another way could be to check fHaveSeenInitialSequenceNumber in accessors, it’s up to you.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Best Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> Michel.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:FR'>[@@ THALES GROUP INTERNAL @@]<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>