CertC-MEMΒΆ
Memory Management
Nested Rules
Store a new value in pointers immediately after free() |
|
Immediately cast the result of a memory allocation function call into a pointer to the allocated type |
|
Do not access freed memory |
|
Free dynamically allocated memory when no longer needed |
|
Allocate and copy structures containing a flexible array member dynamically |
|
Only free memory allocated dynamically |
|
Allocate sufficient memory for an object |
|
Do not modify the alignment of objects by calling realloc() |
Options
Setting an option for this rule means setting the default for all nested rules.
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
This rule has no individual options.