...
Wiki Markup |
---|
This example from KerrighanKernighan & Ritchie \[[KerrighanKernighan 88|AA. C References#KerrighanReferences#Kernighan 88]\] shows items being deleted from a linked list. Because {{p}} is freed before the {{p->next}} is executed, {{p->next}} reads memory that has already been freed. |
...
Wiki Markup |
---|
\[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]\] Section 7.20.3.2, "The free function" \[[Seacord 05|AA. C References#Seacord 05]\] Chapter 4, "Dynamic Memory Management" \[[KerrighanKernighan 88|AA. C References#KerrighanReferences#Kernighan 88]\] Section 7.8.5, "Storage Management" OWASP, [Using freed memory|http://www.owasp.org/index.php/Using_freed_memory] \[[MITRE 07|AA. C References#MITRE 07]\] [CWE ID 416|http://cwe.mitre.org/data/definitions/416.html], "Use After Free" \[[Viega 05|AA. C References#Viega 05]\] Section 5.2.19, "Using freed memory" |
...