Skip to content
Tcl Source Code Artifact [80a2b7670c]
Login

Artifact [80a2b7670c]

Artifact 80a2b7670c79483b698ae54a24a215237505f0f8fdba35872daf70d79b94de47:

Ticket change [80a2b7670c] - New ticket [41c9857bdd2d137b|41c9857bdd] <i>library/init.tcl adds nonsense to auto_path in Safe Base interpreters</i>. by kjnash on 2020-06-23 17:28:45.
D 2020-06-23T17:28:45.408
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment (I\swill\spatch\sthe\scode\smyself\sshortly\s-\sthis\sticket\sis\sfor\sreference.)\r\n\r\nBug\sin\slibrary/init.tcl\sfor\sSafe\sBase\sinterpreters.\r\n\r\nThe\sfile\slibrary/init.tcl\sis\ssourced\sinto\sthe\smain\sinterpreter,\sunsafe\sslave\sinterpreters,\sand\sSafe\sBase\sslave\sinterpreters.\r\n\r\nThe\sfile\sis\snot\ssourced\sinto\ssafe\sslave\sinterpreters\screated\sby\s[interp\screate\s-safe\sfoo].\s\sIn\sa\sSafe\sBase\sinterpreter,\sthe\sfile\sis\ssourced\sby\s::safe::interpCreate\safter\sit\screates\sthe\ssafe\sslave.\r\n\r\nIn\sa\sSafe\sBase\sinterpreter,\sthe\selements\sof\s::auto_path\smust\sbe\sthe\stokenized\sdirectory\snames,\se.g.\s{$p(:42:)}.\s\sThe\sSafe\sBase\sinterpreter\sis\sunable\sto\suse\sreal\sdirectory\snames,\sand\ssuch\sinformation\sshould\snot\sleak\sinto\sthe\sinterpreter\sin\sany\scase.\r\n\r\nThe\scurrent\slibrary/init.tcl\spermits\ssuch\sleakage.\s\sIt\sappends\sthe\slist\selements\s.\s./lib\sto\s::auto_path.\r\n\s\s\s\s.\sis\sadded\sas\s[file\sdirname\s$::tcl_library]\r\n\s\s\s\s./lib\sis\sadded\sas\s[file\sjoin\s[file\sdirname\s[file\sdirname\s[info\snameofexecutable]]]\slib]\r\n\r\nThe\sbest\sfix\sis\snot\sto\sallow\ssafe\sinterpreters\sto\sexecute\sthe\scode\sthat\ssets\sauto_path\sin\slibrary/init.tcl.\s\sFor\sa\sSafe\sBase\sslave\sinterpreter,\sresponsibility\sfor\sinitializing\s::auto_path\srests\swith\sthe\sSafe\sBase\sand\swith\sthe\scaller\sof\s::safe::interpCreate,\snot\swith\slibrary/init.tcl.
J foundin 8.6\sand\sabove
J is_private 0
J login kjnash
J priority 5\sMedium
J private_contact a774b1f5653dc3360e29ea7d635a64e94c9f1dab
J resolution None
J severity Minor
J status Open
J submitter kjnash
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title library/init.tcl\sadds\snonsense\sto\sauto_path\sin\sSafe\sBase\sinterpreters
J type Bug
K 41c9857bdd2d137b9130deb6704be15e159e4765
U kjnash
Z 5580de182e7f3d9b3bbc48e0da8242f7