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