<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Committed in r140648. (Removed the triple from the command line.)<div><div><div><br></div><div>Thanks!</div><div>Anna.</div><div>On Sep 27, 2011, at 11:24 AM, Anna Zaks wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Is there a reason why we specify the triple in the malloc overflow checker tests?<div><br><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(80, 143, 115); ">-triple x86_64-apple-macosx10.7.0</div><div><div><br></div><div>Anna.</div><div>On Sep 27, 2011, at 12:26 AM, ียภฺ wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi ted,</div>
<div> </div>
<div>here is the patch with a self-contained test case.<br><br></div>
<div class="gmail_quote">2011/9/26 Ted Kremenek <span dir="ltr"><<a href="mailto:kremenek@apple.com">kremenek@apple.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">Awesome.  Can you also include a self-contained test case in that patch that we can add to "make test"? 
<div><br>
<div>
<div>
<div></div>
<div class="h5">
<div>On Sep 25, 2011, at 6:26 PM, ียภฺ wrote:</div><br></div></div>
<blockquote type="cite">
<div>
<div></div>
<div class="h5">Hi clang,<br><br>Clang will crash on the following codes with "-cc1 -analyze -analyzer-checker=core,experimental -analyzer-store region".<br><br>
<div style="MARGIN-LEFT: 40px"><font size="2"><span style="COLOR: rgb(51,51,255)">#include <ostream></span><br style="COLOR: rgb(51,51,255)"><span style="COLOR: rgb(51,51,255)">#include <iomanip></span><br style="COLOR: rgb(51,51,255)">
<br style="COLOR: rgb(51,51,255)"><span style="COLOR: rgb(51,51,255)">using namespace std;</span><br style="COLOR: rgb(51,51,255)"><br style="COLOR: rgb(51,51,255)"><span style="COLOR: rgb(51,51,255)">void oops2(ostream &os, float f)</span><br style="COLOR: rgb(51,51,255)">
<span style="COLOR: rgb(51,51,255)">{</span><br style="COLOR: rgb(51,51,255)"><span style="COLOR: rgb(51,51,255)">  os << setprecision(2) << f;</span><br style="COLOR: rgb(51,51,255)"><span style="COLOR: rgb(51,51,255)">}</span><br>
</font></div><br>This patch fix this crash in MallocOverflowSecurityChecker.<br><br>-- <br>Best regards!<br><br>Lei Zhang<br></div></div><span><crash.patch></span>_______________________________________________<br>cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards!<br><br>Lei Zhang<br>
<span><crash.patch></span>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br></blockquote></div><br></div></div></div>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></blockquote></div><br></div></body></html>