CWE-1082 · Słabość
Class Instance Self Destruction Control Element
- Abstrakcja
- Bazowa
- Status
- Niekompletny
- Dodano
- 2 lipca 2018
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The code contains a class instance that calls the method or function to delete or destroy itself.
For example, in C++, "delete this" will cause the object to delete itself.
Skutki
Other
Reduce Reliability
This issue can prevent the product from running reliably. 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-7, 2016
- Memory Management — Standard C++ Foundation
Wpis z katalogu CWE 4.20.