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

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

Test Case IDCandidate199322
Bad / Good / MixedGoodGood test case
AuthorToyota ITC
Associations
Bad pair: 199321  
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 Free Code to identify false positives 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): 66,68 CWE-561
* line(s): 140 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, 34, 50, 69, 81, 99, 119, 140, 151, 174, 192, 216, 261, 286, 318
CWE-561: Dead Code on line(s): 66, 68