Class Instance Self Destruction Control Element

Incomplete Base
Structure: Simple
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. 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.

Common Consequences 1
Scope: Other

Impact: Reduce Reliability

References 2
Automated Source Code Reliability Measure (ASCRM)
Object Management Group (OMG)
01-2016
ID: REF-961
Memory Management
Standard C++ Foundation
ID: REF-976
Taxonomy Mapping
  • OMG ASCRM