Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C Coding Standard
3 Recommendations
Rec. 08. Memory Management (MEM)
Page Information
Title:
Rec. 08. Memory Management (MEM)
Author:
Barbara White
Mar 05, 2015
Last Changed by:
Will Snavely
Nov 16, 2017
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/OtUxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
3 Recommendations
Children (11)
Page:
MEM00-C. Allocate and free memory in the same module, at the same level of abstraction
Page:
MEM01-C. Store a new value in pointers immediately after free()
Page:
MEM02-C. Immediately cast the result of a memory allocation function call into a pointer to the allocated type
Page:
MEM03-C. Clear sensitive information stored in reusable resources
Page:
MEM04-C. Beware of zero-length allocations
Page:
MEM05-C. Avoid large stack allocations
Page:
MEM06-C. Ensure that sensitive data is not written out to disk
Page:
MEM07-C. Ensure that the arguments to calloc(), when multiplied, do not wrap
Page:
MEM10-C. Define and use a pointer validation function
Page:
MEM11-C. Do not assume infinite heap space
Show all...
Page:
MEM12-C. Consider using a goto chain when leaving a function on error when using and releasing resources
Hide...
Labels
Global Labels (3)
recommendation-list
mem
section
Recent Changes
Time
Editor
Nov 16, 2017 14:41
Will Snavely
View Changes
Aug 13, 2015 11:47
Will Snavely
View Changes
Reverted from v. 4
Aug 13, 2015 10:22
David Svoboda
View Changes
Apr 29, 2015 10:28
Robert Seacord
View Changes
Mar 31, 2015 23:43
Will Snavely
View Page History
Outgoing Links
External Links (5)
https://confluence/label/seccode/mem
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://confluence/label/seccode/recommendation
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT C Coding Standard (1)
Home page:
SEI CERT C Coding Standard
Overview
Content Tools
{"serverDuration": 60, "requestCorrelationId": "f676420516e38f9b"}