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

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

Test Case IDCandidate199320
Bad / Good / MixedGoodGood test case
AuthorToyota ITC
Bad pair: 199319  
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 Free Code to identify false positives 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): 279,288,290,291,398,399 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, 41, 56, 94, 110, 137, 160, 196, 209, 242, 265, 348, 367, 422
CWE-476: NULL Pointer Dereference on line(s): 279, 288, 290, 291, 398, 399