Back to the previous page
Test Case ID | ![]() |
Bad / Good / Mixed | Good![]() |
Author | Toyota ITC |
Associations | Bad pair: 199263 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_null_pointer.c free_null_pointer_main.c -lm -lpthread |
Submission date | 2016-07-22 |
Description | Defect Type: Pointer related defects Defect Sub-type: Free NULL pointer Description: Defect Free Code to identify false positives while freeing null pointer The test case contains coincidental weaknesses along with intended ones as follows for file free_null_pointer.c: * line(s): 83,92,118,153,155,160,186,192,248,270,283,289,290,313,324,334,370,451,457,488,520,521,522,535,536,537,549,550,551 CWE-476 * line(s): 133,204,375,381,386,403,409,414,440,450,451 CWE-561 * line(s): 489 CWE-401 |
File(s) |
|
Flaw |
There are no comments
Have any comments on this test case? Please,
.
File Contains:
CWE-476: NULL Pointer Dereference on line(s): 83, 92, 118, 153, 155, 160, 186, 192, 248, 270, 283, 289, 290, 313, 324, 334, 370, 451, 457, 488, 520, 521, 522, 535, 536, 537, 549, 550, 551
CWE-465: Pointer Issues on line(s): 26, 44, 66, 85, 119, 160, 249, 292, 337, 397, 464, 495, 550
CWE-401: Improper Release of Memory Before Removing Last Reference ('Memory Leak') on line(s): 489
CWE-561: Dead Code on line(s): 133, 204, 375, 381, 386, 403, 409, 414, 440, 450, 451
CWE-476: NULL Pointer Dereference on line(s): 83, 92, 118, 153, 155, 160, 186, 192, 248, 270, 283, 289, 290, 313, 324, 334, 370, 451, 457, 488, 520, 521, 522, 535, 536, 537, 549, 550, 551
CWE-465: Pointer Issues on line(s): 26, 44, 66, 85, 119, 160, 249, 292, 337, 397, 464, 495, 550
CWE-401: Improper Release of Memory Before Removing Last Reference ('Memory Leak') on line(s): 489
CWE-561: Dead Code on line(s): 133, 204, 375, 381, 386, 403, 409, 414, 440, 450, 451