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

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

Test Case IDCandidate199267
Bad / Good / MixedBadBad test case
AuthorToyota ITC
Associations
Good pair: 199268  
Test suite: 104  
Added byCharles Oliveira
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructionsgcc -Wall -I ../../../shared/104 function_return_value_unchecked.c function_return_value_unchecked_main.c -lm -lpthread
Submission date2016-07-22
DescriptionDefect 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