~ expansion leaks information in 'safe' interpreters
Closed / Fixed3529949fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2012-05-26 13:07:38
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.
dkfplain2012-05-28 20:19:05
allow_comments - 1 Fixed in 8.6 only.
Log in (anonymous is fine) to add a comment.