CWE一覧に戻る
CWE-1082

クラス・インスタンス

Class Instance Self Destruction Control Element
脆弱性 作成中
JA

このコードには、メソッドや関数を呼び出して自身を削除または破棄するクラス・インスタンスが含まれている。

例えば、C++では、"delete this "とすると、オブジェクトはそれ自体を削除する。

EN

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.

Scope: Other / Impact: Reduce Reliability
MITRE公式ページ — CWE-1082