Umbra Wiki weakness weakness/CWE-1045
Back to wiki

CWE-1045 — Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor

provenance: imported · CWE: CWE-1045

CWE-1045: Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Incomplete
Likelihood of exploit

Description

A parent class has a virtual destructor method, but the parent has a child class that does not have a virtual destructor.

Common consequences

  • Other: Reduce Reliability

Mitigations

(none listed)

References

  • CWE page: https://cwe.mitre.org/data/definitions/1045.html
  • CWE list: https://cwe.mitre.org/data/index.html