Versions Compared

Key

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

...

To prevent this error, size parameters should not be operated on in a way that they are stored in different data types

h2 Non-compliant code example

 h2 compliant solution. Furthermore, it is recommended that size parameters are checked for integer conversion errors before they are supplied to malloc, calloc, or realloc.