Versions Compared

Key

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

The C programming language provides several ways to allocate memory which can be used by a C++ program, such as std::malloc()std::calloc(), and std::realloc(). However, it only defines a single way to free the allocated memory: std::free(). See MEM31-C. Free dynamically allocated memory when no longer needed and MEM34-C. Only free memory allocated dynamically for rules specifically regarding C allocation and deallocation requirements.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

MEM31MEM51-CPP

High

Likely

Medium

P18

L1

...

...