BaseIncomplete

CWE-1079Parent Class without Virtual Destructor Method

Category: other

Description

A parent class contains one or more child classes, but the parent class does not have a virtual destructor method.

Common consequences· 1

  • Other — Reduce Reliability
    This issue can prevent the product from running reliably due to undefined or unexpected behaviors. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.

References

  1. https://cwe.mitre.org/data/definitions/1079.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor
CWE
Class with Virtual Method without a Virtual Destructor
CWE
Parent Class with References to Child Class
CWE
Class with Excessively Deep Inheritance
CWE
Class with Excessive Number of Child Classes
CWE
Use of Object without Invoking Destructor Method
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.