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

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

Test Case IDCandidate199313
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Good pair: 199314  
Test suite: 104  
Added byCharles Oliveira
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 st_underrun.c st_underrun_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect Type: Stack related defects
Defect Sub-type: Stack underrun

The test case contains coincidental weaknesses along with intended ones as follows for file st_underrun.c:
* line(s): 25,51,92,130,150,193 CWE-835
* line(s): 193,195,204 CWE-121
* line(s): 195,227 CWE-124
* line(s): 247 CWE-561

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

File Contains:
CWE-561: Dead Code on line(s): 247
CWE-124: Buffer Underwrite ('Buffer Underflow') on line(s): 25, 51, 92, 130, 160, 193, 195, 227, 229
CWE-121: Stack-based Buffer Overflow on line(s): 193, 195, 204
CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') on line(s): 25, 51, 92, 130, 150, 193