Versions Compared

Key

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

...

ISO/IEC TR 24772 "FLC Numeric Conversion Errorsconversion errors"

MISRA Rules 10.1, 10.3, 10.5, and 12.9

MITRE CWE: CWE-192, "Integer Coercion Errorcoercion error,"CWE-197, "Numeric Truncation Errortruncation error," CWE-681, "Incorrect Conversion conversion between Numeric Typesnumeric types"

Bibliography

[Dowd 2006] Chapter 6, "C Language Issues" (Type Conversionsconversions, pp. 223-270223–270)
[Seacord 2005a] Chapter 5, "Integers"
[Viega 2005] Section 5.2.9, "Truncation error," Section 5.2.10, "Sign extension error," Section 5.2.11, "Signed to unsigned conversion error," and Section 5.2.12, "Unsigned to signed conversion error"
[Warren 2002] Chapter 2, "Basics"
[xorl 2009] "CVE-2009-1376: Pidgin MSN SLP Integer Truncation"

...