<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Yes, I think you’ve found a bug in the code.<div class=""><br class=""></div><div class="">Note, however, that you seem to be using an old version of the code, because:</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic';" class=""><span lang="EN-US" class="">In this case, foundRequest can’t access because it is deleted. But, handleRequestBytes accesses foundRequest on 1835 line. It occurs crash.</span></div></div></div></blockquote><div><br class=""></div>In the current version of the code (the only version that we support), “foundRequest” is accessed on line 1842, not line 1835.</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic';" class=""><span lang="EN-US" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic';" class=""><span lang="EN-US" class=""> </span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic';" class=""><span lang="EN-US" class="">When I modified code like below, it works without crash.<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic';" class=""><span lang="EN-US" class="">if (!resendCommand(foundRequest)) break;<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic';" class=""><span lang="EN-US" class="">-> if (!resendCommand(foundRequest)) return;<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic';" class=""><span lang="EN-US" class=""> </span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic';" class=""><span lang="EN-US" class="">Please Confirm my modified code is ok.</span></div></div></div></blockquote><div><br class=""></div></div>It would be better to replace that line with:</div><div class=""><span class="Apple-tab-span" style="white-space:pre">      </span>(void)resendCommand(foundRequest);</div><div class=""><br class=""></div><div class="">so that the the following line</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>delete[] headerDataCopy;</div><div class="">gets executed - and then</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>return;</div><div class="">after that.</div><div class=""><br class=""></div><div class="">I’ll be fixing this bug in the next release of the software.</div><br class=""><br class=""><div apple-content-edited="true" class="">
<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: -webkit-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;  "><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: -webkit-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;  ">Ross Finlayson<br class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>