Description
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.
Extended Description
The use of sizeof() on a pointer can sometimes generate useful information. An obvious case is to find out the wordsize on a platform. More often than not, the appearance of sizeof(pointer) indicates a bug.
CVE vulnerabilities with CWE-467 (3)
8.4
CVSS
HIGH
CVE-2021-47456
pub. 2024-05-22
7.5
CVSS
HIGH
CVE-2020-1638
pub. 2020-04-08
6.5
CVSS
MEDIUM
CVE-2025-33132
pub. 2025-10-28