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>