A temporary file name could point at a file another program already created
KSA-2026-0002
- Status
- Resolved
- Severity
- Low
- Affected versions
- No released version (development code from before 0.2.0)
- Fixed in
- 0.2.0
- Published
- 2026-11-02
- Updated
- 2026-11-02
Summary
GetTempFileName in the Windows program layer returned a file name even when creating that file failed because it already existed. A program sharing the temporary folder could create the file first and so read or change what another program wrote to it.
The function now tries the next name until it creates a new file, and returns an error instead of a name it did not create. This was found and fixed before the first public release.
Credit
Brent Gordon