Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9cbebfb327bb5d3c80df6bf6b950ca15c0912bf8
Ticket: 2379689fffffffffffffffffffffffffffffffff
[clock] alias in safe slave
User & Date: dgp on 2008-12-02 21:44:39
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    I notice in the SlaveCreate() routine:
    
        /*
         * The [clock] command presents a safe API, but uses unsafe features in
         * its implementation. This means it has to be implemented in safe interps
         * as an alias to a version in the (trusted) master.
         */
    
        if (safe) {
            Tcl_Obj *clockObj;
            int status;
    
            TclNewLiteralStringObj(clockObj, "clock");
            Tcl_IncrRefCount(clockObj);
            status = AliasCreate(interp, slaveInterp, masterInterp, clockObj,
                    clockObj, 0, NULL);
            Tcl_DecrRefCount(clockObj);
            if (status != TCL_OK) {
                goto error2;
            }
        }
    
        return slaveInterp;
    
      error:
        TclTransferResult(slaveInterp, TCL_ERROR, interp);
      error2:
        Tcl_DeleteInterp(slaveInterp);
    
    
    What is the reason to bypass the reporting of
    the error message when failure to create the
    [clock] alias lead to failure to create the
    slave interp?
    
    
    
  4. foundin changed to: "obsolete: 8.6a4"
  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: "dgp"
  10. subsystem changed to: "06. Time Measurement"
  11. title changed to: "[clock] alias in safe slave"
  12. type changed to: "Bug"