Weakness (CWE)
CWE-825: Expired Pointer Dereference
Base Incomplete
The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.
How to prevent it (2 mitigations)
-
Architecture and Design
Choose a language that provides automatic memory management.
-
Implementation
When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Source: MITRE CWE-825
0 results · Clear filters · Feed
Nothing found.