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

章磊 ioripolo at gmail.com
Tue Sep 27 00:26:41 PDT 2011


Hi ted,

here is the patch with a self-contained test case.

2011/9/26 Ted Kremenek <kremenek at apple.com>

> 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
>
>
>


-- 
Best regards!

Lei Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110927/52de1ae2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.patch
Type: application/octet-stream
Size: 1193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110927/52de1ae2/attachment.obj>


More information about the cfe-commits mailing list