Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 12eebb3e882cd43db483afee4ffe4f5135286c0e
Ticket: 3529949fffffffffffffffffffffffffffffffff
~ expansion leaks information in 'safe' interpreters
User & Date: dkf on 2012-05-26 13:07:38
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    As a follow-up to Bug 2913625, if you do this in a safe interpreter:
    
      file join [file dirname ~user] [file tail ~user]
    
    You get the name of the home directory of the user (or an error if they don't exist). Putting “&& !Tcl_IsSafe(interp)” in apparently relevant spots in tclFileName.c and tclPathObj.c doesn't work, as this is actually doing the tilde expansion in the context of the parent.
    
  4. foundin changed to: "obsolete: 8.5.11"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dkf"
  10. subsystem changed to: "33. Safe Base"
  11. title changed to:
    ~ expansion leaks information in 'safe' interpreters
    
  12. type changed to: "Bug"