Back to the previous page
| Test Case ID | 2096 |
| Bad / Good / Mixed | Bad |
| Author | Charline Cleraux |
| Associations | |
| Added by | Charline Cleraux |
| Language | Java |
| Type of test case | Source Code |
| Input string | |
| Expected Output | |
| Instructions | |
| Submission date | 2009-08-21 |
| Description | The 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
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition on line(s): 45

