Quote of the week
But there is a catch. If you have an over-eager warning police that "fixes all the warnings", the warnings may be gone, but the very real problems in near vicinity are not. Not to mention new problems introduced by those claimed "fixes". [...]
Note one scary consequence: code checkers in the wrong hands are actively harmful.
Posted Feb 28, 2008 7:43 UTC (Thu)
by jimparis (guest, #38647)
[Link] (1 responses)
Posted Feb 28, 2008 7:43 UTC (Thu)
by jimparis (guest, #38647)
[Link]
Posted Feb 28, 2008 13:22 UTC (Thu)
by davecb (subscriber, #1574)
[Link] (3 responses)
Posted Feb 29, 2008 14:19 UTC (Fri)
by vonbrand (subscriber, #4458)
[Link] (1 responses)
Very nice tools! I'll dig into them later.
Posted Feb 29, 2008 14:58 UTC (Fri)
by davecb (subscriber, #1574)
[Link]
Posted Mar 2, 2008 11:00 UTC (Sun)
by joern (guest, #22392)
[Link]
Posted Feb 28, 2008 16:56 UTC (Thu)
by dwheeler (guest, #1216)
[Link]
Quote of the week
From the same thread, a good post on why checkpatch.pl is useful:
http://article.gmane.org/gmane.linux.drivers.openib/50253
Quote of the week
Hmmmm... and now I see the whole thread is summarized and this post is mentioned in the next
LWN article. That's what I get for reading things in order!
Quote of the week
This is one of the reasons that I and my
colleagues like semi-automated error/portability
analyses with a human in the loop to provide
judgement.
The process and the tool are described, in the
context of porting, at
<self-aggrandizing plug>
http://datacenterworks.com/stories/port.html
</self-aggrandizing plug>
--dave
Quote of the week
Quote of the week
I'm also reachable as davecb@spamcop.net or @datacenterworks.com
Quote of the week
What caught my eye in the first couple of lines was this: "fixing compiler error messages".
Which is an excellent description of the actively harmful behaviour my quote was about.
"Fixing" compiler warnings gives your brain the same quick high that a heroin fix will - and is
just as useful. There simply is no fix for a compiler warning.
_Code_ may be buggy or have poor style. Code can be fixed. Compiler warnings are just that:
warnings. They may be valid, they may be invalid and they may point to something much more
interesting in near vicinity. But the strange idea that warnings can be fixed in any shape or
form is plain wrong.
And mechanically going through the compiler output, randomly changing code until miraculously
all warnings disappear is far too common a mispractice to treat it with lenience.
DO NOT FIX WARNINGS!
Fix code.
For a specific example, see the example of RealNetwork's use of flawfinder. Flawfinder correctly pointed out some vulnerabilities, but instead of fixing them they inserted comment directives to hide the warning.
A fool with a tool