Versions Compared

Key

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

...

Code Block
signed long sl1, sl2, result;

if (sl2 == 0) {
  /* handle error condition */
}
result = sl1 % sl2;

Priority: P4 Level:

...

L3

Divide-by-zero errors can lead to abnormal program termination and denial-of-service attacks.

...