[cfe-commits] Patch to fix a crash in MallocOverflowSecurityChecker

章磊 ioripolo at gmail.com
Sun Sep 25 18:26:23 PDT 2011


Hi clang,

Clang will crash on the following codes with "-cc1 -analyze
-analyzer-checker=core,experimental -analyzer-store region".

#include <ostream>
#include <iomanip>

using namespace std;

void oops2(ostream &os, float f)
{
  os << setprecision(2) << f;
}

This patch fix this crash in MallocOverflowSecurityChecker.

-- 
Best regards!

Lei Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110926/f2ecfc95/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110926/f2ecfc95/attachment.bin>


More information about the cfe-commits mailing list