Artifacts Associated With Ticket 3363369
Ticket change [02454db174] (rid 119612) by foomench on 2011-07-11 19:29:10:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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 */ ... - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "foomench"
- subsystem initialized to: "10. Objects"
- title initialized to:
Tcl_SetObjResult can't handle NULL, despite documentation
- type initialized to: "Bug"
Ticket change [a73726bfc0] (rid 98753) by msofer on 2011-07-12 19:34:33:
- closedate changed to: "2011-07-12T12:34:33"
- closer changed to: "msofer"
- icomment:
allow_comments - 1 dup of 3363556 (submitted twice)
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "msofer"