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

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

Test Case IDAccepted2122
Bad / Good / MixedGoodGood test case
AuthorCharline Cleraux
Associations
Test suite: 64  
Added byCharline Cleraux
LanguageJava
Type of test caseSource Code
Input string
Expected Output
Instructions
Submission date2009-10-15
DescriptionIt checks the state of the file myfile.txt. Its state can change with the function sleep, but is verified before using it.
File(s)
Flaw

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition on line(s): 0, 44, 54