BaseIncomplete

CWE-1087Class with Virtual Method without a Virtual Destructor

Category: other

Description

A class contains a virtual method, but the method does not have an associated virtual destructor.

Common consequences· 1

  • Other — Reduce Reliability
    This issue can prevent the product from running reliably, e.g. due to undefined behavior. 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/1087.html

Related by meaning· 6

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

CWE
Parent Class without Virtual Destructor Method
CWE
Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor
CWE
Use of Object without Invoking Destructor Method
CWE
Class Instance Self Destruction Control Element
CWE
Parent Class with References to Child Class
CWE
Method Containing Access of a Member Element from Another Class
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.