Overview
| Artifact ID: | 104a0eeb2146b52dc3c0db638bfddbb25480ec5e6f7ea26a35c61b709e608cde |
|---|---|
| Ticket: | 4d3f2130292dbfe33977659c2afe98c7bb86b668
VFS support causes infinite recursion during 'file exists' if working directory has been removed |
| User & Date: | serhiy.storchaka on 2026-10-13 20:09:22 |
Changes
- foundin changed to: "9.0.5, 9.1.0"
- icomment:
Not specific to VFS: in 9.0 and 9.1, where zipfs is always registered, the example crashes without any extension. When a script sourced with a relative path is evaluated after its current directory was deleted, its path cannot be normalized, and <code>TclEvalEx()</code> then jumped to its error handler before parsing a command, using uninitialized data and corrupting memory. Proposed fix in branch [/timeline?r=eval-cwd-deleted|eval-cwd-deleted]: use the path as is, it is only used for location information. The script then gets the usual errors for <code>pwd</code> and <code>glob</code>. Test source-9.1.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"