Versions Compared

Key

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

...

Compliant Solution

To correct this error, check ensure the pointer returned by malloc() to ensure that it is not invalid (null). In addition to ths this rule, this should be done in accordance with rule MEM32-C. Detect and handle critical memory allocation errors.

...