Questions tagged [coverity-prevent]

Coverity Prevent is a commercial static source code analyzer that looks for errors such as inconsistent NULL checks, dead code, unused return values, missing break statement, etc.

Coverity Prevent is the old name for Coverity Static Analysis, a commercial product produced by Coverity, Inc.

Coverity Static Analysis exists for C/C++, Java and C#. The analysis works on the AST rather than on the source code. The AST is generated by Coverity's compiler which observes the native compiler and then outputs the AST for the analysis phase emulating the behavior of the native compiler.

The analysis phase runs multiple "checkers" which look for common defects along multiple paths (excluding those which are not feasible at run-time).

Common problems with running Coverity Static Analysis would be errors from "cov-build" or "cov-analyze" steps. Those are best addressed with Coverity support or on Coverity Developer Forums (http://communities.coverity.com/)

Questions which may be of interest to general development communities would be discussions of why a particular piece of code was flagged as being incorrect or suboptimal.

In most cases, it will be necessary to provide sufficient context to make clear what the analysis is flagging - this would include the code flagged as well as all relevant definitions of types, etc.

There have already been extensive discussions about the benefits of Static Analysis tools and comparison of free and commercial offerings, but any completely new questions of that type could be appropriate candidates for this tag.

35 questions
0
votes
2 answers

Project is not listed in coverity portal

I created one new project in coverity and I am able to commits defects in that project. When I open the coverity portal my project is not listed but it is listed in the configuration window.
Dhinesh
  • 105
  • 1
  • 2
  • 9
0
votes
1 answer

How to run batch file in coverity

I am new to coverity and i am using .bat file for building. Is there any way to build .bat file through coverity buil(cov-build) command in command line. thanks in advance.
Dhinesh
  • 105
  • 1
  • 2
  • 9
0
votes
1 answer

Error while compiling a C++ project with devenv using Coverity. (cov-build.exe)

When running a Coverity build I get the following error: Failed to locate msbuild.exe when handling devenv template configuration. Shutting down resident msbuild processes is impossible. Can't find it in Google! Does anyone know what this might…
borod108
  • 766
  • 1
  • 6
  • 16
-1
votes
1 answer

Coverity reference function inputs for a custom checker

Is there a simple way to take the general arguments of a function (Pointer, Array, Integer) and get the values backing the expression, when writing a custom checker? As in, I match against a function such as: Pointer p; Integer i; CallSite…
Batman
  • 49
  • 1
  • 8
-4
votes
1 answer

how do i fix this overrun?

out of bound write. there is an overrun error. > #define FLOORSNUMBER 128 > #define ILAFLOORSNUMBER 40 > #else > #define ILAFLOORSNUMBER 40 > > uint8 downCallSide[ILAFLOORSNUMBER]; extern…
1 2
3