Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated automated detection table

...

Tool

Version

Checker

Description

LDRA tool suite

Include Page
LDRA_V
LDRA_V

42 D
71 S

Fully implemented.

Fortify SCA

V. 7.6.0

 

Can detect violations when an array is declared in a function and then a pointer to that array is returned.

Splint
Include Page
Splint_V
Splint_V
  
Compass/ROSE  

Can detect violations of this rule. It automatically detects returning pointers to local variables. Detecting more general cases, such as examples where static pointers are set to local variables which then go out of scope would be difficult.

Coverity

Include Page
Coverity_V
Coverity_V

RETURN_LOCAL

Finds many instances where a function will return a pointer to a local stack variable. Coverity Prevent cannot discover all violations of this rule, so further verification is necessary.

Klocwork

Include Page
Klocwork_V
Klocwork_V

LOCRET.*

 
PRQA QA-C
Include Page
PRQA_V
PRQA_V

3217

Partially implemented  

3225

   

3230

 

  

4140

 
Partially implemented

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...