|
Status: Draft Weakness ID: 563 (Weakness Variant)Description Summary The variable's value is assigned but never used, making it a dead store. Extended Description It is likely that the variable is simply vestigial, but it is also possible that the unused variable points out a bug. Potential Mitigations Remove unused variables from the code. Demonstrative Examples The following code excerpt assigns to the variable r and then overwrites the value without using it. r = getName(); r = getNewBuffer(buf);
Other Notes This variable's value is not used. After the assignment, the variable is either assigned another value or goes out of scope. Relationships
Taxonomy Mappings
Time of Introduction ImplementationContent History Submissions Anonymous Tool Vendor (under NDA). (Externally Mined) Modifications Eric Dalci. Cigital. 2008-07-01. (External) updated Potential_Mitigations, Time_of_Introduction CWE Content Team. MITRE. 2008-09-08. (Internal) updated Description, Relationships, Other_Notes, Taxonomy_Mappings CWE Content Team. MITRE. 2008-11-24. (Internal) updated Relationships, Taxonomy_Mappings |
|
|
|||