<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Awesome.  Can you also include a self-contained test case in that patch that we can add to "make test"?<div><br><div><div>On Sep 25, 2011, at 6:26 PM, 章磊 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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>
<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>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></blockquote></div><br></div></body></html>