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

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

Test Case IDCandidate199329
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Good pair: 199330  
Test suite: 104  
Added byCharles Oliveira
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 zero_division.c zero_division_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect Type: Numerical defects
Defect Sub-type: Division by zero
Description: Defect Code used to identify the division by zero functionality

The test case contains coincidental weaknesses along with intended ones as follows for file zero_division.c:
* line(s): 235,239,249 CWE-476

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

File Contains:
CWE-369: Divide By Zero on line(s): 22, 33, 46, 58, 77, 92, 117, 128, 140, 153, 165, 177, 194, 205, 224, 251
CWE-476: NULL Pointer Dereference on line(s): 235, 239, 249