| Ticket UUID: | 49538c09c8d7e93ab4375a41023c6c293f01cb5e | ||
| Title: | TclUnixWaitForFile: infinite wait reads uninitialized "now" and may return early | ||
| Type: | Bug | Created on: | 2026-09-25 17:27:46 |
| Submitter: | serhiy.storchaka | Assigned to: | |
| Subsystem: | 01. Notifier | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2026-09-25 17:39:09 |
| Status: | Open | Closed by: | |
| Resolution: | None | Closed on: | |
| Version: | 9.0.4, 9.1b1 | ||
| Description: | ||||
|
In
do {
...
if (timeout < 0) {
continue;
}
now = Tcl_GetDayTime();
} while (abortTime > now);
| ||||
| User Comments: | ||||
serhiy.storchaka added on 2026-09-25 17:39:09:
Proposed fix in [65772037dd] (branch unix-waitforfile-infinite-wait): use | ||||
