Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tool

Version

Checker

Description

Section

LDRA tool suite

Include Page
c:LDRA_V
c:LDRA_V

 

Section

45 D

Section

Fully Implemented

 

Section

Fortify SCA

Section

V. 5.0

 

 

Section

Splint

Include Page
c:Splint_V
c:Splint_V

 

 

Section

Compass/ROSE

 

 

Section

can detect violations of this rule. In particular, Rose ensures that any pointer returned by malloc(), calloc(), or realloc() is first checked for NULL before being used (otherwise it is free()-d). Rose does not handle cases where an allocation is assigned to an lvalue that is not a variable (such as a struct member or C++ function call returning a reference.)

Section

Coverity Prevent

Include Page
c:Coverity_V
c:Coverity_V
Section

CHECKED_RETURN

Section

finds instances where a pointer is checked against NULL and then later dereferenced.

Section

Coverity Prevent

Include Page
c:Coverity_V
c:Coverity_V
Section

NULL_RETURNS

Section

identifies functions that can return a null pointer but are not checked.

Section

Coverity Prevent

Include Page
c:Coverity_V
c:Coverity_V
Section

REVERSE_INULL

Section

identifies code that dereferences a pointer and then checks the pointer against NULL.

Section

Coverity Prevent

Include Page
c:Coverity_V
c:Coverity_V
Section

FORWARD_NULL

Section

can find the instances where NULL is explicitly dereferenced or a pointer is checked against null but then dereferenced anyway.
Coverity Prevent cannot discover all violations of this rule, so further verification is necessary.

Section

Klocwork

Include Page
c:Klocwork_V
c:Klocwork_V
Section

NPD.* *RNPD.*

 

...