Back to the previous page
| Test Case ID | 149231 |
| Bad / Good / Mixed | Bad |
| Author | NIST, Alexander Hoole, Aurelien Delaitre |
| Associations | Good pair: 149232 Replacing: 1891 Test suite: 100 |
| Added by | Charles Oliveira |
| Language | C |
| Type of test case | Source Code |
| Input string | |
| Expected Output | |
| Instructions | gcc -Wall -g -O0 -std=gnu99 -o race_stat_basic-bad race_stat_basic-bad.c |
| Submission date | 2015-03-23 |
| Description | The test case shows a Time-of-Check-Time-of-Use (TOCTOU) race condition between checking file attributes and then opening and writing to the file. |
| 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): 41
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition on line(s): 41

