Memory Management (MEM)
- MEM30-C. Do not access freed memory
- MEM31-C. Free dynamically allocated memory when no longer needed
- MEM33-C. Allocate and copy structures containing a flexible array member dynamically
- MEM34-C. Only free memory allocated dynamically
- MEM35-C. Allocate sufficient memory for an object
- MEM36-C. Do not modify the alignment of objects by calling realloc()
Information for Editors
In order to have a new guideline automatically listed above be sure to label it mem and rule .
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| MEM30-C | High | Likely | No | No | P9 | L2 |
| MEM31-C | Medium | Probable | No | No | P4 | L3 |
| MEM33-C | Low | Unlikely | Yes | No | P2 | L3 |
| MEM34-C | High | Likely | No | No | P9 | L2 |
| MEM35-C | High | Probable | No | No | P6 | L2 |
| MEM36-C | Low | Probable | No | No | P2 | L3 |


