Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: "used by the memory" revised to "used by the memory manager"

...

In cases where the memory allocation functions return a non-null pointer, reading from or writing to the allocated memory area results in undefined behavior. Typically, the pointer refers to a zero-length block of memory consisting entirely of control structures. Overwriting these control structures will damage the data structures used by the memory manager.

Noncompliant Code Example (malloc())

...