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

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

Test Case IDDeprecated75
Bad / Good / MixedBadBad test case
AuthorSecureSoftware
Associations
Replaced by: 2016  
Test suite: 9  
Added bySecureSoftware
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructions
Submission date2005-11-08
DescriptionTempfile creation should be done in a safe way. To be safe, the temp file function should open up the temp file with appropriate access control. The temp file function should also retain this quality, while being resistant to race conditions. (from TCCLASP-5_6_20_10)
File(s)
Flaw

There is 1 comment
Have any comments on this test case? Please, .

File Contains:
CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') on line(s): 0