Versions Compared

Key

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

...

Wiki Markup
In this compliant solution, the integer values passed as size arguments to memory allocation functions are of the correct size and have not been altered due to integer overflow \[[INT32-C. Ensure that integer operationsoperations on signed integers do not result in an overflow]\] or truncation \[[INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data]\].

...

This example also checks for unsigned integer overflow in compliance with INT32-C. Ensure that integer operations on signed integers do not result in an overflow.

Compliant Solution (size calculation)

...