Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b14addeb2d11ba947981e992c3597a779a6f88e273b5cd530772d33271735665
Ticket: 2f8bb4800932dd6fa42197835d039ba21209013c
`clock -locale` escapes safe interp via `~` path (msgcat 1.6.2/1.7.2)
User & Date: serhiy.storchaka on 2026-10-23 07:24:03
Changes

  1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
  2. icomment:
    Confirmed. On main and 9.0, <tt>mcpackagelocale preferences</tt> loads its arguments without the locale check, so an absolute path is sourced; on 8.6 the leading <tt>~</tt> route works as described.
    
    Proposed fix in branch [/timeline?r=msgcat-unsafe-locale|msgcat-unsafe-locale] (for main and 9.0): one check for all routes, which also rejects a leading <tt>~</tt>, applied in <tt>getpreferences</tt>, to every argument of <tt>mcpackagelocale preferences</tt>, and in <tt>msgcat::Load</tt> before a catalog file is sourced, as suggested. Tests msgcat-12.13 to 12.15. 8.6 needs a separate change, since <tt>preferences</tt> is read-only there. The msgcat version is not bumped.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"