Versions Compared

Key

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

...

Fortify SCA Version 5.0 with the CERT C Rule Pack can detect violations of this recommendation.

Compass/ROSE could detect the specific NCCE. It could identify when the result of a % operation might be negative, and flag usage of that result in an array index. It could, conceivably flag usage of any such result without first checking that the result is positive, but this will most likely introduce many false positives.

Related Vulnerabilities

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

...