Main Content
CWE Rule 469
Description
Rule Description
The application 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.
Polyspace Implementation
The rule checker checks for Subtraction or comparison between pointers to different arrays.
Examples
Check Information
Category: Pointer Issues |
Version History
Introduced in R2023a