CWE一覧に戻る
CWE-563

使用しない変数への代入

Assignment to Variable without Use
脆弱性 レビュー中
JA

変数の値は代入されるが使われることはなく、デッドストアになる。

代入後、その変数には別の値が代入されるか、スコープ外に出る。その変数が単に過去のものである可能性もあるが、未使用の変数がバグを指摘している可能性もある。

EN

The variable's value is assigned but never used, making it a dead store.

After the assignment, the variable is either assigned another value or goes out of scope. It is likely that the variable is simply vestigial, but it is also possible that the unused variable points out a bug.

Scope: Other / Impact: Quality Degradation; Varies by Context
Remove unused variables from the code.
MITRE公式ページ — CWE-563