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

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

Test Case IDCandidate199259
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Associations
Good pair: 199260  
Test suite: 104  
Added byCharles Oliveira
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 endless_loop.c endless_loop_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect Type: Misc defects
Defect Sub-type: Unintentional end less loop

The test case contains coincidental weaknesses along with intended ones as follows for file endless_loop.c:
* line(s): 24,41,57,74,95,111,133,150,166 CWE-190
* line(s): 26,43,59,76,97,113,135,152,169 CWE-561
File(s)
Flaw

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

File Contains:
CWE-561: Dead Code on line(s): 26, 43, 59, 76, 97, 113, 135, 152, 169
CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') on line(s): 24, 41, 57, 74, 95, 111, 133, 150, 166
CWE-190: Integer Overflow or Wraparound on line(s): 24, 41, 57, 74, 95, 111, 133, 150, 166