Back to the previous page
| Test Case ID | 199322 |
| Bad / Good / Mixed | Good |
| Author | Toyota ITC |
| Associations | Bad pair: 199321 Test suite: 104 |
| Added by | Charles Oliveira |
| Language | C |
| Type of test case | Source Code |
| Input string | |
| Expected Output | |
| Instructions | gcc -Wall -I ../../../shared/104 uninit_var.c uninit_var_main.c -lm -lpthread |
| Submission date | 2016-07-22 |
| Description | Defect 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
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

