Esc
Reference Nullification
Definition
Invalidating all pointers that reference a specific memory block, ensuring that the block cannot be accessed or modified after deallocation.
How it Works
Nullifying references to memory blocks makes those blocks no longer accessible. This is critical to prevent use-after-free errors.
Considerations
- If a memory block is freed, all other references to that block should be nullified.
- This is particularly relevant when manually managing memory.
- Note: This resource should not be considered a definitive or exhaustive coding guideline.
loading...
loading...
References
All
External Knowledge Base
The following references were used to develop the Reference Nullification knowledge-base article.
(Note: the consideration of references does not imply specific functionality exists in an offering.)
The CLASP Application Security Process
Reference Type: External Knowledge Base Organization: Secure Software, Inc.
D3FEND™
A knowledge graph of cybersecurity countermeasures