CWE-1079 · Słabość
Parent Class without Virtual Destructor Method
- Abstrakcja
- Bazowa
- Status
- Niekompletny
- Dodano
- 2 lipca 2018
- Ostatnia zmiana
- 11 grudnia 2025
Opis
A parent class contains one or more child classes, but the parent class does not have a virtual destructor method.
Skutki
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.
Słabość nadrzędna
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific
Źródła
- Automated Source Code Reliability Measure (ASCRM) — Object Management Group (OMG), ASCRM-RLB-16, 2016
Wpis z katalogu CWE 4.20.