CodeAnt AI home pagelight logodark logo
  • Dashboard
  • Dashboard

Sizeof this

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

Assistant
Responses are generated using AI and may contain mistakes.
twitterlinkedin
Powered by Mintlify
  • Documentation
  • Demo Call with CEO
  • Blog
  • Slack
  • Get Started
    • CodeAnt AI
    • Setup
    • Control Center
    • Pull Request Review
    • IDE
    • Compliance
    • Anti-Patterns
    • Code Governance
    • Infrastructure Security Database
    • Application Security Database

    Sizeof this

    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

    Assistant
    Responses are generated using AI and may contain mistakes.
    twitterlinkedin
    Powered by Mintlify