Back to the previous page
Test Case ID | ![]() |
Bad / Good / Mixed | Bad![]() |
Author | Toyota ITC |
Associations | Good pair: 199262 Test suite: 104 |
Added by | Charles Oliveira |
Language | C |
Type of test case | Source Code |
Input string | |
Expected Output | |
Instructions | gcc -Wall -I ../../../shared/104 free_nondynamic_allocated_memory.c free_nondynamic_allocated_memory_main.c -lm -lpthread |
Submission date | 2016-07-22 |
Description | Defect 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 |
File(s) |
|
Flaw |
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
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