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

Ted Kremenek kremenek at apple.com
Mon Sep 26 08:14:39 PDT 2011


Awesome.  Can you also include a self-contained test case in that patch that we can add to "make test"?

On Sep 25, 2011, at 6:26 PM, 章磊 wrote:

> 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
> <crash.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110926/ba3cbee5/attachment.html>


More information about the cfe-commits mailing list