On Tue, Mar 01, 2016 at 05:39:29PM +0100, Holger Hoffstätte wrote: > On 03/01/16 16:45, Holger Hoffstätte wrote: > > On 03/01/16 14:41, Alexander Fougner wrote: > >> All zero-sized allocations are false positives, except the > > Right, I've now also reviewed them all and they are all guarded > by other conditions or plain wrong - very likely because this > particular warning itself turns out to be a bug in llvm: > https://llvm.org/bugs/show_bug.cgi?id=15708
Thanks for running the scan. I've played with the static scanner in the past and my evaluation found like 5% of issues worth fixing, but more or less low or moderate importance. The real value I see is that one has to review some part of code and this usually leads to fixes. The quality of the reports is IMHO questionable, just look at the path of the reported problems, counted by branches and some important code points. I've simply skipped anything that was more than like 20. Keeping the whole context in head was hard and sometims there were "cannot happen" conditions that were not visible to the checker. I'm submitting progs to coverity regularly, the reports are totally different from clang checker, and usually worth fixing. Also tracking errors is a bit more friendly as it has the web ui to classify them. A resubmission will mark off the fixed errors. Processing new batch of errors means going through like 2-10 new errors, and it's usually on code that I've seen recently. Overall, I think it's good to try different checkers from time to time, as the quality supposedly increases. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html