SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security
Downloads:  Download this Test Case #199321

Back to the previous page... Back to the previous page

Test Case IDCandidate199321
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Associations
Good pair: 199322  
Test suite: 104  
Added byCharles Oliveira
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 uninit_var.c uninit_var_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect Type: Misc defects
Defect Sub-type: Uninitialized variable
Description: Defect code to identify uninitialized variable in a code flow

The test case contains coincidental weaknesses along with intended ones as follows for file uninit_var.c:
* line(s): 57,59,73 CWE-561
* line(s): 120,176 CWE-457
File(s)
Flaw

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-457: Use of Uninitialized Variable on line(s): 22, 33, 44, 62, 74, 91, 110, 120, 130, 141, 160, 176, 177, 200, 242, 266, 295
CWE-561: Dead Code on line(s): 57, 59, 73