Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-12-31
16:05 • Closed ticket [951cd4cdfa]: Do not add subdirectories to tcl::tm::list in safe i... artifact: ebad509a7b user: kjnash
2020-07-20
23:53 • Ticket [2917673fff] Behavior of Safe Base status still Open with 6 other cha... artifact: b2eb05755b user: kjnash
2020-07-16
02:02 • Ticket [951cd4cdfa] Do not add subdirectories to tcl::tm::list in safe interp</i... artifact: e9003dee9d user: kjnash
02:02 • Ticket [951cd4cdfa]: 2 changes artifact: 2c12c87213 user: kjnash
01:15 • Ticket [951cd4cdfa]: 3 changes artifact: e3542a4054 user: kjnash
2020-07-15
12:04 • New ticket [951cd4cdfa]. artifact: f1afe66a75 user: kjnash

Do not add subdirectories to tcl::tm::list in safe interp

Closed / Fixed951cd4cdfa7e1d4088a2bae732ecb39e190adcdeCreated 6 years agoUpdated 6 years ago
Descriptionplain2020-07-15 12:04:45
The Safe Base ensures that a safe slave interpreter can use modules, by adding to the slave's access path the directories of the master's [tcl::tm::list], and all their descendants.  It should also set the safe interpreter's [tcl::tm::list] to a tokenized form of the master's value.  In fact it also adds tokens for the descendants.

When a script requests module "b", this bug means in that in adverse circumstances the interpreter would receive module "a::b" instead.

Fixed in branch safe-bugfixes-8-6 commit [081a8b9b50].  New test safe-9.20 checks for excess directories in [tcl::tm::list].
kjnash Ticket [951cd4cdfa]: 3 changes [History diff]2020-07-16 01:15:01
kjnash Ticket [951cd4cdfa]: 2 changes [History diff]2020-07-16 02:02:08
kjnash Ticket [951cd4cdfa]: 3 changes [History diff]2020-07-16 02:02:38
kjnash Closed ticket [951cd4cdfa]. [History diff]2020-12-31 16:05:27
Log in (anonymous is fine) to add a comment.