Skip to content
Tcl Source Code History Of Ticket 655300
Login

History Of Ticket 655300

Artifacts Associated With Ticket 655300

  1. Ticket change [f484163141] (rid 129935) by dgp on 2002-12-17 17:33:00:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The docs for Tcl_MakeSafe say:
      
           Tcl_MakeSafe makes interp ``safe'' by removing all
       non-core
           and  core  unsafe  functionality. Note that if you
      call this
           after adding some extension to an interpreter, all
      traces of
           that extension will be removed from the interpreter.
      
      It's not exactly clear to me what magical package
      unloading power is claimed for Tcl_MakeSafe, but
      it's clear that Tcl_MakeSafe doesn't have it.
      
      Consider:
      
          Tcl_Interp *i = Tcl_CreateInterp();
          Tcl_Eval(i, "package require Tk");
          Tcl_MakeSafe(i);
      
      At this point the Tk commands (both safe and unsafe)
      will still be defined in i.
      
      
      
    4. foundin initialized to: "obsolete: 8.4.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "20. [interp]"
    10. title initialized to: "Tcl_MakeSafe docs confusing/wrong"
    11. type initialized to: "RFE"
  2. Ticket change [6ee1f36894] (rid 100215) by dkf on 2002-12-18 00:41:35:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Does anything need safe interps that are not slaves of
      full-blooded masters?  If not, the only correct way of using
      this API is through Tcl_CreateSlave() and Tcl_MakeSafe would
      be better not exposed at all.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [e7c718f3e6] (rid 104527) by dgp on 2002-12-18 00:53:48:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      "need" is pretty strong.  Seems wasteful to
      be forced to create an unsafe master when
      all one wants is a safe interp, though.
      
      Then again, we don't really "need" safe interps;
      one can always delete commands from an
      interp based on one's own judgment about
      safety/utility.
      
      Agree that a public Tcl_MakeSafe()
      doesn't seem like a good idea though,
      since it allows any extension to mark
      an interp as "safe" without any guarantee
      that all unsafe stuff is removed.
      
      Does Tcl_MakeSafe have any callers
      outside of Tcl itself?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [13a5723948] (rid 124260) by dgp on 2003-04-14 11:14:58:

    1. priority changed to: "7 High"
  5. Ticket change [9d43efb992] (rid 96272) by dgp on 2003-07-16 22:41:54:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      any ideas for cleaning this up for 8.4.4 ?
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "dgp"
  6. Ticket change [3da93b175e] (rid 121126) by dkf on 2003-07-17 04:05:39:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      I'd be tempted to make it undocumented, perhaps with a new
      TclMakeSafe() in tclInt.decls in case someone is relying on
      it actually being there.  I'm not sure whether we're allowed
      to do that in a point release though ;^)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [e1f9f33e91] (rid 87540) by dkf on 2003-07-17 04:36:24:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Documentation is now fixed, but leaving open as Tcl_MakeSafe
      is a candidate for removal from the public API; the only
      client I know of is Tcl_CreateSlave (and then only when it
      is asked to create a safe slave.)
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. priority changed to: "5 Medium"
    6. resolution changed to: "Fixed"
    7. username: "dkf"
  8. Ticket change [6ca11a0b12] (rid 128548) by dgp on 2003-07-17 10:32:23:

    1. foundin changed to: "obsolete: 8.4.3"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Interesting discussion on the
      Tclers' chat and consultation
      with the Tcl 7.6 source code
      revealed that Tcl_MakeSafe
      once behaved as documented.
      
      Behavior changed starting with
      Tcl 8, but the docs were not changed.
      
      Seems likely the behavior change was
      a bug.
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "dgp"
  9. Ticket change [b6bb14ab95] (rid 125468) by dgp on 2003-07-18 22:23:30:

    1. assignee changed to: "nobody"
    2. foundin changed to: "None"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Softened the deprecation warning
      in the modified docs for 8.4.4.
      
      I think the remaining issue
      is a desire of some to restore
      the Tcl 7 behavior.  Converting
      to an RFE...
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. priority changed to: "5 Medium"
    7. resolution changed to: "Remind"
    8. subsystem changed to: "None"
    9. title changed to: "restore Tcl 7 compatibility of Tcl_MakeSafe"
    10. username: "dgp"
  10. Ticket change [54c1055545] (rid 94003) by dgp on 2003-07-18 22:24:45:

    1. subsystem changed to: "20. [interp]"
  11. Ticket change [fb53524200] (rid 92042) by dgp on 2003-07-18 22:26:59:

    1. assignee changed to: "hobbs"
  12. Ticket change [7e76721c3e] (rid 199952) by jan.nijtmans on 2022-04-05 07:02:08:

    1. assignee changed to: "jan.nijtmans"
    2. closer changed to: "nobody"
    3. comment changed to:
      The docs for Tcl_MakeSafe say:
      
           Tcl_MakeSafe makes interp ``safe'' by removing all
       non-core
           and  core  unsafe  functionality. Note that if you
      call this
           after adding some extension to an interpreter, all
      traces of
           that extension will be removed from the interpreter.
      
      It's not exactly clear to me what magical package
      unloading power is claimed for Tcl_MakeSafe, but
      it's clear that Tcl_MakeSafe doesn't have it.
      
      Consider:
      
          Tcl_Interp *i = Tcl_CreateInterp();
          Tcl_Eval(i, "package require Tk");
          Tcl_MakeSafe(i);
      
      At this point the Tk commands (both safe and unsafe)
      will still be defined in i.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/plain"
    6. severity changed to: "Minor"
  13. Ticket change [c152e6692a] (rid 204694) by jan.nijtmans on 2022-09-26 11:03:36:

    1. closedate changed to: "2459848.96083767"
    2. closer changed to: "jan.nijtmans"
    3. foundin changed to: "8.6"
    4. icomment:
      Handled by [https://core.tcl-lang.org/tips/doc/trunk/tip/624.md|TIP #624]. Tcl_MakeSafe will be gone in Tcl 9.0, so no worries any more.
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"