Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Failing to properly construct or destroy an object leaves its internal state inconsistent, which can result in undefined behavior and accidental information exposure.

Rule

Severity

Likelihood

Detectable

RepairableRemediation Cost

Priority

Level

MEM53-CPP

High

Likely

No

NoMedium

P18P9

L1L2

Automated Detection

Tool

Version

Checker

Description

Helix QAC

Include Page
Helix QAC_V
Helix QAC_V

DF4761, DF4762, DF4766, DF4767


Klocwork
Include Page
Klocwork_V
Klocwork_V

CERT.MEM.OBJ_LIFETIME_CTOR
CERT.MEM.OBJ_LIFETIME_DTOR


Parasoft C/C++test

Include Page
Parasoft_V
Parasoft_V

CERT_CPP-MEM53-a

Do not invoke malloc/realloc for objects having constructors
Polyspace Bug Finder

Include Page
Polyspace Bug Finder_V
Polyspace Bug Finder_V

CERT C++: MEM53-CPPChecks for objects allocated but not initialized (rule fully covered).
PVS-Studio

Include Page
PVS-Studio_V
PVS-Studio_V

V630V749
Security Reviewer - Static Reviewer

6.02

CPP_28
CPP_29
Fully implemented

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...