8
References
[REF-960]Object Management Group (OMG). "Automated Source Code Maintainability Measure
(ASCMM)". 2016 January. < https://www.omg.org/spec/ASCMM/ >.2023-04-07.
CWE-1082: Class Instance Self Destruction Control Element
Weakness ID : 1082
Structure : Simple
Abstraction : Base
Description
The code contains a class instance that calls the method or function to delete or destroy itself.
Extended Description
For example, in C++, "delete this" will cause the object to delete itself.
CWE Version 4.14
CWE-1083: Data Access from Outside Expected Data Manager Component
CWE-1083: Data Access from Outside Expected Data Manager Component