CWE-469: Use of Pointer Subtraction to Determine Size
ID
CWE-469
Abstraction
Base
Structure
Simple
Status
Draft
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.
Modes of Introduction
Phase | Note |
---|---|
Implementation |
Applicable Platforms
Type | Class | Name | Prevalence |
---|---|---|---|
Language | C | ||
Language | C++ |
Loading...