Description of the issue
This rule is defined as follows:
"name": "cpp/uninitialized-local",
"shortDescription": { "text": "Potentially uninitialized local variable" },
"fullDescription": {
"text": "Reading from a local variable that has not been assigned to will typically yield garbage."
}, ..."properties": {
"tags": [
"security",
"external/cwe/cwe-665",
"external/cwe/cwe-457"
],
CWE 457 (Use of Uninitialized Variable) is the proper mapping for this rule. But CWE 665 is marked DISCOURAGED,
Recommended Fix
I recommend dropping the mapping of this rule to CWE-665 as its use is DISCOURAGED, and 457 is exactly the correct mapping for this rule.
Description of the issue
This rule is defined as follows:
CWE 457 (Use of Uninitialized Variable) is the proper mapping for this rule. But CWE 665 is marked DISCOURAGED,
Recommended Fix
I recommend dropping the mapping of this rule to CWE-665 as its use is DISCOURAGED, and 457 is exactly the correct mapping for this rule.