pcp
[Top] [All Lists]

Re: [pcp] coding issues and defects uncovered by Coverity scans

To: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Subject: Re: [pcp] coding issues and defects uncovered by Coverity scans
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 25 Jan 2012 12:21:02 +1100
Cc: pcp <pcp@xxxxxxxxxxx>
In-reply-to: <4F0E6C1B.1030005@xxxxxxxxxx>
References: <4F0E6C1B.1030005@xxxxxxxxxx>
On Thu, 2012-01-12 at 16:14 +1100, Mark Goodwin wrote:
> Coverity is a sophisticated static code analysis tool.
> Among other things, it checks for the conditions listed here:
> https://www.securecoding.cert.org/confluence/display/seccode/Coverity+Prevent

Can someone with knowledge of Coverity please advise ...

1. For the issues we wish to mark as IGNORED after analysis, where is
this state held and how is it used in subsequent runs to ensure we're
note forced to review these false matches again?

2. Does Coverity understand assert()s?  Specifically will
        if (foo == NULL) {
                ...
        }
        assert(foo != NULL);
        ...
        bar = *foo;
   suppress Coverity warnings about dereferencing the possibly NULL foo?

<Prev in Thread] Current Thread [Next in Thread>