Potential low hanging fruit from PVS-Studio
Brad Roberts
braddr at slice-2.puremagic.com
Wed Oct 19 17:43:43 PDT 2011
On Wed, 19 Oct 2011, Walter Bright wrote:
> On 10/19/2011 12:01 PM, Andrej Mitrovic wrote:
> > This was apparently a typo in the Chrome source code.
>
> Sure, but what the article didn't say was how many false positives of this
> were generated. Presumably they filtered all those out and left just the
> actual bugs.
>
> Some people legitimately write:
>
> x=-3;
>
> and breaking all that shouldn't be considered lightly.
Additionally, existence proof that someone somewhere made the mistake is
pointless as evidence that the language must prevent it. Occurrances per
million lines of code starts to be useful data. Give up programming
altogether if your goal is to rule out the possibility to write wrong
code.
More information about the Digitalmars-d
mailing list