Versions Compared

Key

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

All Integer operations must be guaranteed not to result in overflow, truncation, or sign error

Non-compliant Code Example 1

In the following non-compliant code example, cBlocks is multiplied by 16 and the result is stored in the unsigned long long int alloc.  The result of this multiplication can overflow because it is a 32 bit operation and the resulting value stored in alloc invalid.

...