Versions Compared

Key

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

...

[Henricson 97] Rule 8.3 Do not access a pointer or reference to a deleted object
[ISO/IEC 9899:1999] Section 7.20.3.2, "The free function"
[ISO/IEC PDTR 24772] "DCM Dangling references to stack frames" and "XYK Dangling Reference to Heap"
[Kernighan 88] Section 7.8.5, "Storage Management"
[MISRA 04] Rule 17.6
[MITRE 07] CWE ID 416, "Use After Free"
[OWASP Freed Memory]
[Seacord 05a] Chapter 4, "Dynamic Memory Management"
[Viega 05] Section 5.2.19, "Using freed memory"

...

MEM13-CPP. Use smart pointers instead of raw pointers for resource management      08. Memory Management (MEM)      MEM31-CPP. Free dynamically allocated memory exactly onceImage Added Image Added Image Added