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

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

Test Case IDCandidate199317
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Associations
Good pair: 199318  
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 Code 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): 53,113,115 CWE-824
* line(s): 115,119,127,199,223,248,250,251,362,363,366,368,391,397,403,434,439 CWE-476
* line(s): 403 CWE-465
* line(s): 434 CWE-457
File(s)
Flaw

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

File Contains:
CWE-476: NULL Pointer Dereference on line(s): 73, 115, 119, 127, 199, 223, 248, 250, 251, 362, 363, 366, 368, 391, 397, 403, 434, 439
CWE-457: Use of Uninitialized Variable on line(s): 26, 38, 54, 73, 97, 127, 154, 199, 248, 297, 312, 338, 368, 434, 439
CWE-465: Pointer Issues on line(s): 403
CWE-824: Access of Uninitialized Pointer on line(s): 53, 113, 115