CWE-1079—Parent Class without Virtual Destructor Method
PUBLISHEDweakness record
released 2019-01-03 · last modified 2025-12-11
Metadata
- CWE ID:
- CWE-1079
- 摘要:
- Base
- 结构:
- Simple
- 状态:
- Incomplete
- 发布日期:
- 2019-01-03
- 更新日期:
- 2025-12-11
名称
Parent Class without Virtual Destructor Method
描述
A parent class contains one or more child classes, but the parent class does not have a virtual destructor method.
常见后果
- 范围:
- 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.