[patch] Warn on memcmp(a, b, sizeof(a) != 0) & co

Nico Weber thakis at chromium.org
Wed Jan 8 16:41:48 PST 2014


On Wed, Jan 8, 2014 at 12:13 PM, Joerg Sonnenberger <joerg at britannica.bec.de
> wrote:

> On Wed, Jan 08, 2014 at 11:48:05AM -0800, Nico Weber wrote:
> > I did experiment with this extension a bit. It finds another 1.5 bugs in
> > chromium (a real bug in NSS, and somewhat questionable code in chromium
> > itself), with 0.5 false positives (it's actually 0, but in 1 case it's
> > fairly easy to accidentally enable the warning) – see
> > http://llvm.org/bugs/show_bug.cgi?id=18297 , comments 6 and later.
>
> For NetBSD, I think we had two bugs in non-critical branches and no
> false positives. That's for the committed version.
>

Thanks, but the committed version is already committed :-) I'm wondering if
making this warning broader is useful.


>
> Joerg
> _______________________________________________
> 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/20140108/13f2648c/attachment.html>


More information about the cfe-commits mailing list