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

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

Test Case IDCandidate199319
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Good pair: 199320  
Test suite: 104  
Added byCharles Oliveira
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 uninit_pointer.c uninit_pointer_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect Type: Pointer related defects
Defect Sub-type: Uninitialized pointer
Description: Defect Code to identify uninitialized pointer access in the code flow

The test case contains coincidental weaknesses along with intended ones as follows for file uninit_pointer.c:
* line(s): 182 CWE-824
* line(s): 186,267,276,278,279,382,384 CWE-476

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

File Contains:
CWE-824: Access of Uninitialized Pointer on line(s): 29, 40, 54, 89, 103, 130, 151, 182, 186, 199, 230, 253, 334, 351, 405
CWE-476: NULL Pointer Dereference on line(s): 186, 267, 276, 278, 279, 382, 384