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

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

Test Case IDCandidate199318
Bad / Good / MixedGoodGood test case
AuthorToyota ITC
Associations
Bad pair: 199317  
Test suite: 104  
Added byCharles Oliveira
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 uninit_memory_access.c uninit_memory_access_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect Type: Resource management defects
Defect Sub-type: Uninitialized memory access
Description: Defect Free Code to identify false positives to identify access to memory locations which are uninitialized
Created on: Sep 26, 2013
Author: hemalatha

The test case contains coincidental weaknesses along with intended ones as follows for file uninit_memory_access.c:
* line(s): 75,117,121,129,235,241,260,262,263,376,377,378,381,383,408,455,460 CWE-476
* line(s): 413,419,424 CWE-561
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): 26, 39, 55, 75, 99, 129, 156, 209, 260, 309, 324, 352, 383, 460
CWE-476: NULL Pointer Dereference on line(s): 75, 117, 121, 129, 235, 241, 260, 262, 263, 376, 377, 378, 381, 383, 408, 455, 460
CWE-561: Dead Code on line(s): 413, 419, 424