Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Quoted spec and referenced Annex J.

Wiki Markup
Division and modulo operations are susceptible to divide-by-zero errors. According to section 6.5.5, paragraph 5 of \[[ISO/IEC 9899:1999|AA. References#ISOBibliography#ISO/IEC 9899-1999]\] (see also [undefined behavior 42 | CC. Undefined Behavior#ub_42] of Annex J):

...

Wiki Markup
\[[ISO/IEC 9899:1999|AA. References#ISOBibliography#ISO/IEC 9899-1999]\] Section 6.5.5, "Multiplicative operators"
\[[MITRE 07|AA. References#MITREBibliography#MITRE 07]\] [CWE ID 369|http://cwe.mitre.org/data/definitions/369.html], "Divide By Zero"
\[[Seacord 05|AA. References#SeacordBibliography#Seacord 05]\] Chapter 5, "Integers"
\[[Warren 02|AA. References#WarrenBibliography#Warren 02]\] Chapter 2, "Basics"

...