Category: SFP Secondary Cluster: Faulty Pointer Use

Incomplete
Summary

This category identifies Software Fault Patterns (SFPs) within the Faulty Pointer Use cluster (SFP7).

Membership
IDNameDescription
CWE-469Use of Pointer Subtraction to Determine SizeThe 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-476NULL Pointer DereferenceThe product dereferences a pointer that it expects to be valid but is NULL.
CWE-588Attempt to Access Child of a Non-structure PointerCasting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption.
CWE-888Software Fault Pattern (SFP) ClustersCWE identifiers in this view are associated with clusters of Software Fault Patterns (SFPs).
Vulnerability Mapping Notes
Usage: Prohibited
Reasons: Category
Rationale:
This entry is a Category. Using categories for mapping has been discouraged since 2019. Categories are informal organizational groupings of weaknesses that can help CWE users with data aggregation, navigation, and browsing. However, they are not weaknesses in themselves.
Comment:
See member weaknesses of this category.