<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span><div><div><div><div><div><div><span><div><div><div>Hello,</div><div><br></div><div>We have developed a RTSP client using live555. </div><div><br></div><div>#0 0x006f253d in DelayQueue::removeEntry(DelayQueueEntry*) () from /usr/lib/libvideosource.so.1</div><div>#1 0x006f2c4f in DelayQueue::handleAlarm() () from /usr/lib/libvideosource.so.1</div><div>#2 0x006f1f70 in BasicTaskScheduler::SingleStep(unsigned int) () from /usr/lib/libvideosource.so.1</div><div>#3 0x006f3920 in BasicTaskScheduler0::doEventLoop(char*) () from /usr/lib/libvideosource.so.1</div></div></div><div><br></div><div><br></div><div><div><span><div><div><div><div><div><div><span><div><div><div>Looking at the code here <a href="http://www.live555.com/liveMedia/doxygen/html/DelayQueue_8cpp-source.html">http://www.live555.com/liveMedia/doxygen/html/DelayQueue_8cpp-source.html</a> I see this:</div><div><br></div><div><pre style="font-family: monospace, fixed; font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); background-color: rgb(255, 255, 255); margin-top: 4px; margin-bottom: 4px; margin-left: 2px; margin-right: 8px; padding-left: 6px; padding-right: 6px; padding-top: 4px; padding-bottom: 4px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueue.html#da6c5403a9e0e40945dc2e14d0e39435" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">00153</a> <span style="color: rgb(96, 64, 32); ">void</span> <a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueue.html#da6c5403a9e0e40945dc2e14d0e39435" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">DelayQueue::removeEntry</a>(<a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">DelayQueueEntry</a>* entry) {
<a name="l00154" style="color: rgb(26, 65, 168); "></a>00154 <span style="color: rgb(224, 128, 0); ">if</span> (entry == <a href="http://www.live555.com/liveMedia/doxygen/html/UsageEnvironment_8hh.html#070d2ce7b6bb7e5c05602aa8c308d0c4" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">NULL</a> || entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fNext</a> == <a href="http://www.live555.com/liveMedia/doxygen/html/UsageEnvironment_8hh.html#070d2ce7b6bb7e5c05602aa8c308d0c4" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">NULL</a>) <span style="color: rgb(224, 128, 0); ">return</span>;
<a name="l00155" style="color: rgb(26, 65, 168); "></a>00155
<a name="l00156" style="color: rgb(26, 65, 168); "></a>00156 entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fNext</a>-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#68a7578179260ad40cb4f8fbde38e491" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fDeltaTimeRemaining</a> += entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#68a7578179260ad40cb4f8fbde38e491" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fDeltaTimeRemaining</a>;
<a name="l00157" style="color: rgb(26, 65, 168); "></a>00157 entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#9bafd3137d60cd3b5cef4298a01644fd" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fPrev</a>-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fNext</a> = entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fNext</a>;
<a name="l00158" style="color: rgb(26, 65, 168); "></a>00158 entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fNext</a>-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#9bafd3137d60cd3b5cef4298a01644fd" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fPrev</a> = entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#9bafd3137d60cd3b5cef4298a01644fd" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fPrev</a>;
<a name="l00159" style="color: rgb(26, 65, 168); "></a>00159 entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#3a2ccdcdcac760623833136b5ced2410" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fNext</a> = entry-><a href="http://www.live555.com/liveMedia/doxygen/html/classDelayQueueEntry.html#9bafd3137d60cd3b5cef4298a01644fd" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">fPrev</a> = <a href="http://www.live555.com/liveMedia/doxygen/html/UsageEnvironment_8hh.html#070d2ce7b6bb7e5c05602aa8c308d0c4" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">NULL</a>;
<a name="l00160" style="color: rgb(26, 65, 168); "></a>00160 <span style="color: rgb(128, 0, 0); ">// in case we should try to remove it again</span>
<a name="l00161" style="color: rgb(26, 65, 168); "></a>00161 }</pre><div><br></div></div><div>I think the first if could produce a wrong memory access if entry is NULL. Is that correct?</div></div></div><div><br></div><div>Thanks in advance.</div></span></div></div></div></div></div></div></span></div></div></span></div></div></div></div></div></div></span></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-family: arial; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">-- <br>Francisco Feijoo<br>Software Engineer<br>J2K Video Limited<br><br></span></font></span></div><div><span class="Apple-style-span" style="font-family: arial; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">T: +44 </span></font><span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">020 8133 9388</span></font></span><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br>E: <a href="mailto:francisco@j2kvideo.com">francisco@j2kvideo.com</a><br>W: <a href="http://www.j2kvideo.com">www.j2kvideo.com</a></span></font></span></div></div></span></div></span></div></span></div></span></span>
</div>
<br></body></html>