Common Weakness Enumeration

    CWE Definition / CWE-469

    CWE-469: Use of Pointer Subtraction to Determine Size

    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.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-682: Incorrect Calculation