CWE一覧に戻る
CWE-1126

不必要に広い範囲を持つ変数の宣言

Declaration of Variable with Unnecessarily Wide Scope
脆弱性 作成中
JA

ソースコードはあるスコープで変数を宣言しているが、その変数はより狭いスコープでしか使われない。
変数はより狭いスコープでしか使われない。

EN

The source code declares a variable in one scope, but the
variable is only used within a narrower scope.

Scope: Other / Impact: Reduce Maintainability; Increase Analytical Complexity
MITRE公式ページ — CWE-1126