Skip to content
Tcl Source Code History Of Ticket 3363369
Login

History Of Ticket 3363369

Artifacts Associated With Ticket 3363369

  1. Ticket change [02454db174] (rid 119612) by foomench on 2011-07-11 19:29:10:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Documentation for Tcl_SetObjResult states, "If objPtr is NULL, interp->objResult is set to a new Tcl object containing an empty string." However, the code doesn't do this. In fact, it tries to use objPtr in a Tcl_IncrRefCount call without checking for NULL, which results in an exception. Here's the code:
      
      void
      Tcl_SetObjResult(
          Tcl_Interp *interp,/* Interpreter with which to associate the
       * return object value. */
          register Tcl_Obj *objPtr)/* Tcl object to be returned. If NULL, the obj
       * result is made an empty string object. */
      {
          register Interp *iPtr = (Interp *) interp;
          register Tcl_Obj *oldObjResult = iPtr->objResultPtr;
      
          iPtr->objResultPtr = objPtr;
          Tcl_IncrRefCount(objPtr);/* since interp result is a reference */
      ...
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "foomench"
    10. subsystem initialized to: "10. Objects"
    11. title initialized to:
      Tcl_SetObjResult can't handle NULL, despite documentation
      
    12. type initialized to: "Bug"
  2. Ticket change [a73726bfc0] (rid 98753) by msofer on 2011-07-12 19:34:33:

    1. closedate changed to: "2011-07-12T12:34:33"
    2. closer changed to: "msofer"
    3. icomment:
      
      
      allow_comments - 1
      
      dup of 3363556 (submitted twice)
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "msofer"