sizeof-this
Do not use sizeof(this)
to get the number of bytes of the object in memory. It returns the size of the pointer, not the size of the object.
Likelihood: LOW
Confidence: HIGH
CWE:
- CWE-467: Use of sizeof() on a Pointer Type
sizeof-this
Do not use sizeof(this)
to get the number of bytes of the object in memory. It returns the size of the pointer, not the size of the object.
Likelihood: LOW
Confidence: HIGH
CWE:
- CWE-467: Use of sizeof() on a Pointer Type