...
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.
...