Versions Compared

Key

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

...

The LDRA tool suite V 7.6.0 is able to detect violations of this rule.

Fortify SCA Version 5.0 is able to detect violations when an array is declared in a function and then a pointer to that array is returned.

The Coverity Prevent RETURN_LOCAL checker 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.

...