Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added reference to TAoSSA chapter 6 coverage on type conversions

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

INT31-C

3 (high)

2 (probable)

1 (high)

P6

L2

References

  • ISO/IEC 9899-1999 6.3, "Conversions"
  • Seacord 05 Chapter 5, "Integers"
  • Warren 02 Chapter 2, "Basics"
  • Viega 05 Sections 5.2.9, "Truncation error," 5.2.10, "Sign extension error," 5.2.11, "Signed to unsigned conversion error," and 5.2.12, "Unsigned to signed conversion error"
  • Dowd 06 Chapter 6, "C Language Issues" (Type Conversions, pp. 223-270)