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

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

Test Case IDAccepted2096
Bad / Good / MixedBadBad test case
AuthorCharline Cleraux
Associations
Test suite: 63  65  
Added byCharline Cleraux
LanguageJava
Type of test caseSource Code
Input string
Expected Output
Instructions
Submission date2009-08-21
DescriptionThe code checks the state of a file to use but its state can change while the thread function sleep is running. So results are invalid.
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): 45