Back to the previous page
Test Case ID | ![]() |
Bad / Good / Mixed | Bad![]() |
Author | Toyota ITC |
Associations | Good pair: 199268 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 function_return_value_unchecked.c function_return_value_unchecked_main.c -lm -lpthread |
Submission date | 2016-07-22 |
Description | Defect Type: Inappropriate code Defect Sub-type: Return value of function never checked The test case contains coincidental weaknesses along with intended ones as follows for file function_return_value_unchecked.c: * line(s): 71,90,122,128,134,214,279,284,289,316,397 CWE-561 * line(s): 163,422 CWE-562 * line(s): 433 CWE-672 |
File(s) |
|
Flaw |
There are no comments
Have any comments on this test case? Please,
.
File Contains:
CWE-672: Operation on a Resource after Expiration or Release on line(s): 433
CWE-252: Unchecked Return Value on line(s): 48, 69, 86, 116, 171, 211, 238, 256, 294, 310, 334, 346, 364, 377, 391, 430
CWE-562: Return of Stack Variable Address on line(s): 163, 422
CWE-561: Dead Code on line(s): 71, 90, 122, 128, 134, 214, 279, 284, 289, 316, 397
CWE-672: Operation on a Resource after Expiration or Release on line(s): 433
CWE-252: Unchecked Return Value on line(s): 48, 69, 86, 116, 171, 211, 238, 256, 294, 310, 334, 346, 364, 377, 391, 430
CWE-562: Return of Stack Variable Address on line(s): 163, 422
CWE-561: Dead Code on line(s): 71, 90, 122, 128, 134, 214, 279, 284, 289, 316, 397