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

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

Test Case IDCandidate199253
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Good pair: 199254  
Test suite: 104  
Added byCharles Oliveira
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 double_free.c double_free_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect Type: Resource management defects
Defect Sub-type: Double free

The test case contains coincidental weaknesses along with intended ones as follows for file double_free.c:
* line(s): 37,78 CWE-476
* line(s): 88 CWE-401

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

File Contains:
CWE-415: Double Free on line(s): 22, 43, 64, 87, 101, 115, 131, 149, 168, 187, 204, 222
CWE-401: Improper Release of Memory Before Removing Last Reference ('Memory Leak') on line(s): 88
CWE-476: NULL Pointer Dereference on line(s): 37, 58, 78