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

Description

The code calls sizeof() on a malloced pointer type, which always returns the wordsize/8. This can produce an unexpected result if the programmer intended to determine how much memory has been allocated.

Latest vulnerabilities for CWE-467

No vulnerabilities found using your search criteria

References

Description of CWE-467 on Mitre website