Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4d0f2f20af84229e0b8f710644edf68de3da9f13d998cf10b5ba119610b52221
Ticket: 1095bf7f756f9aed6bdef5b6f36e3f42f4dc372e
ensembles seem to be not compiled in safe interp
User & Date: sebres on 2024-06-13 15:35:36
Changes

  1. assignee changed to: "dkf"
  2. icomment:
    Fixed in branch [./vdiff?from=a7efbe19650e6b1f&to=bug-1095bf7f756f9aed|bug-1095bf7f756f9aed]...
    
    Unfortunately I didn't found any test covering why it shall be disable in safe interpreters and [0a095f089c8ce09a] was about ensembles rewrite (so compilation for non compiled subcommands) only...
    All tests passed...
    
    But I'll assign it to dkf, anyway.
    
    For instance, [./info?name=03c2f076b6b9d3dc86f6e8cd3144f7f4a26d6b5c4e33faba0b673ad90938d6f9&ln=1152-1186|all the subcommands in initMap] of "file" ensemble are marked as safe (zero at end of each declaration in "unsafe")... I know that the whole file command is not available in safe interp, but if it gets exposed to safe child interp, they are then indirectly "safe", however after the fix it still returns "not allowed to invoke subcommand * of file" as expected and intended in [3445787], if I try this (with and without fix):
    <code><pre style="padding-left:20pt">
    % interp create -safe si
    % interp expose si file
    % si eval {file dirname a/b}
    not allowed to invoke subcommand dirname of file
    % si eval {tcl::file::dirname a/b}
    not allowed to invoke subcommand dirname of file
    <pre></code>
    So it seems to be not affected by the fix at all, but... I leave the decision for dkf (or TCT).
    
  3. login: "sebres"
  4. mimetype: "text/x-fossil-wiki"
  5. resolution changed to: "Fixed"
  6. status changed to: "Pending"