Common Weakness Enumeration
CWE Definition / CWE-467
CWE-467: Use of sizeof() on a Pointer Type
The code calls sizeof() on a pointer type, which can be an incorrect calculation if the programmer intended to determine the size of the data that is being pointed to.
Published:19 Jul 2006
Organization:MITRE
Modified:3 Apr 2025
Related Weakness
CWE-131: Incorrect Calculation of Buffer Size
