<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 27, 2017 at 1:04 PM, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class="gmail-"><blockquote type="cite"><div>On Jan 27, 2017, at 1:02 PM, Kostya Serebryany <<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>> wrote:</div><br class="gmail-m_7623908503904193805Apple-interchange-newline"><div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 27, 2017 at 1:00 PM, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">My understanding is that they are supposed to stay the same and are duplicated only for licensing reason.</div></blockquote><div><br></div><div>/me horrified </div></div></div></div></div></blockquote><div><br></div></span><div>Yes :)</div><div><br></div><div>The relicensing may solved this. The GitHub may help as well (by being able to share a top-level demangle project).</div><div><br></div><div>In the meantime the version copied in LLVM can be targeted on the command line with llvm-cxxfilt.</div></div></div></blockquote><div><br></div><div>So, since these are the same now, I won't add it to regular fuzzing on OSS-Fuzz (<a href="https://github.com/google/oss-fuzz">https://github.com/google/oss-fuzz</a>). </div><div>If this changes, please ping me, or feel free to add a new fuzzer yourself. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div class="gmail-h5"><div><br></div><div>— </div><div>Mehdi</div><div><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div class="gmail-m_7623908503904193805h5"><div><div><br></div><div><br></div><div><br><div><blockquote type="cite"><div>On Jan 27, 2017, at 12:59 PM, Kostya Serebryany <<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>> wrote:</div><br class="gmail-m_7623908503904193805m_2541316641486547509Apple-interchange-newline"><div><div dir="ltr">Do we want to fuzz llvm/trunk/lib/Demangle/Itaniu<wbr>mDemangle.cpp in addition to <span style="font-size:12.8px">libcxxabi/trunk/src/cxa_</span><span style="font-size:12.8px">dem<wbr>angle.cpp? </span><div><span style="font-size:12.8px">Are we going to have both long term, or just one? <br></span><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 27, 2017 at 12:32 PM, Mehdi Amini via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Author: mehdi_amini<br>
Date: Fri Jan 27 14:32:16 2017<br>
New Revision: 293330<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=293330&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-pr<wbr>oject?rev=293330&view=rev</a><br>
Log:<br>
Fix ASAN failure in cxa_demangle<br>
<br>
Found with ASAN + libFuzzer by Kostya Serebryany <<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>><br>
<br>
Modified:<br>
    llvm/trunk/lib/Demangle/Itaniu<wbr>mDemangle.cpp<br>
<br>
Modified: llvm/trunk/lib/Demangle/Itaniu<wbr>mDemangle.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Demangle/ItaniumDemangle.cpp?rev=293330&r1=293329&r2=293330&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-pr<wbr>oject/llvm/trunk/lib/Demangle/<wbr>ItaniumDemangle.cpp?rev=293330<wbr>&r1=293329&r2=293330&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/Demangle/Itaniu<wbr>mDemangle.cpp (original)<br>
+++ llvm/trunk/lib/Demangle/Itaniu<wbr>mDemangle.cpp Fri Jan 27 14:32:16 2017<br>
@@ -1402,7 +1402,8 @@ static const char *parse_function_type(c<br>
         int ref_qual = 0;<br>
         while (true) {<br>
           if (t == last) {<br>
-            db.names.pop_back();<br>
+            if (!db.names.empty())<br>
+              db.names.pop_back();<br>
             return first;<br>
           }<br>
           if (*t == 'E') {<br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div></div>
</div></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div></div>
</div></blockquote></div></div></div><br></div></blockquote></div><br></div></div>