Versions Compared

Key

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

...

A division or remainder by zero can result in abnormal program termination and denial-of-service (DoS).

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

NUM02-J

Low

Likely

Medium

P6

L2

Automated Detection

Tool
Version
Checker
Description
Coverity7.5DIVIDE_BY_ZEROImplemented
Parasoft Jtest
Include Page
Parasoft_V
Parasoft_V
BD.PB.ZERO
 

SonarQube

Include Page
SonarQube

3.10

_V
SonarQube_V

S3518
 
Zero should not be a possible denominator

Related Guidelines

Bibliography

[ISO/IEC 9899:1999]

Subclause 6.5.5, "Multiplicative Operators"

[Seacord 05]

Chapter 5, "Integers"

[Seacord 2015]

[Warren 02]

Chapter 2, "Basics"

...


...