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

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

Test Case IDCandidate199261
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Good pair: 199262  
Test suite: 104  
Added byCharles Oliveira
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 free_nondynamic_allocated_memory.c free_nondynamic_allocated_memory_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect Type: Resource management defects
Defect Sub-type: Free non dynamically allocated memory

The test case contains coincidental weaknesses along with intended ones as follows for file free_nondynamic_allocated_memory.c:
* line(s): 82,208 CWE-476
* line(s): 114,127,140 CWE-835

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

File Contains:
CWE-590: Free of Memory not on the Heap on line(s): 22, 36, 48, 62, 86, 103, 115, 128, 141, 155, 170, 187, 209, 229, 239, 262
CWE-476: NULL Pointer Dereference on line(s): 82, 208
CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') on line(s): 114, 127, 140