Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0ee44b0692b6a618c948e1c3eb64354baa2438ca167c22b79d3785f39fe1cc0f
Ticket: 3d978e0a84738b5c6a7bb1afc01aef962e9a25a4
`clock -timezone` escapes safe interp via `~` path (8.6.16+, same gap as [2f8bb48009])
User & Date: serhiy.storchaka on 2026-11-03 14:21:30
Changes

  1. icomment:
    Reproduced on core-8-6-branch and 8.6.16, not on 8.6.15.
    
    Proposed fix in branch [/timeline?r=clock-unsafe-timezone-8-6|clock-unsafe-timezone-8-6]: both guards also reject a leading "~". Only a leading "~" matters: on 8.6 a "~" later in the path stays inside the data directory.
    
    9.0 and later are not affected, since "~" is not expanded there, although adding "~" to the guards there would be harmless.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"