Common Weakness Enumeration

    CWE Definition / CWE-467

    CWE-467: Use of sizeof() on a Pointer Type

    The code calls sizeof() on a pointer type, when the programmer intended to determine the size of the data that is being pointed to.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:28 Oct 2026

    Related Weakness

    CWE-131: Incorrect Calculation of Buffer Size