SFP Secondary Cluster: Faulty Pointer Use
A category in the Common Weakness Enumeration published by The MITRE Corporation.
Categories in the Common Weakness Enumeration (CWE) group entries based on some common characteristic or attribute.
This category identifies Software Fault Patterns (SFPs) within the Faulty Pointer Use cluster (SFP7).
Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption.
A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.
The product subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.
CWE identifiers in this view are associated with clusters of Software Fault Patterns (SFPs).