Artifacts Associated With Ticket 218903ffffffffff
Ticket change [a5ca17c1f8] (rid 110436) by nobody on 2000-10-26 01:07:26:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2613 Bug Version: 8.0.5 SubmitDate: '1999-08-31' LastModified: '1999-09-18' Severity: MED Status: Released Submitter: techsupp ChangedBy: hobbs OS: Windows NT OSVersion: 4.0 Machine: X86 FixedDate: '1999-09-18' FixedInVersion: 8.2.1 ClosedDate: '2000-10-25' Name: Nick Bender CustomShell: None. Comments: Haven't checked later versions... ReproducibleScript: Run the following in tclsh: % array set nospace::new {} ...crash... ObservedBehavior: Crashes with null pointer in line 3177 of generic/tclVar.c DesiredBehavior: % array set nospace::new {} can't set "nospace::new": parent namespace doesn't exist % Patch: *** tclVar.c.oldFri Aug 20 16:59:27 1999 --- tclVar.c.newFri Aug 20 16:58:42 1999 *************** *** 3170,3179 **** * Create variable for new array. */ ! varPtr = TclLookupVar(interp, varName, (char *) NULL, 0, 0, /*createPart1*/ 1, /*createPart2*/ 0, &arrayPtr); } TclSetVarArray(varPtr); TclClearVarUndefined(varPtr); varPtr->value.tablePtr = --- 3170,3184 ---- * Create variable for new array. */ ! varPtr = TclLookupVar(interp, varName, (char *) NULL, ! TCL_LEAVE_ERR_MSG, "set", /*createPart1*/ 1, /*createPart2*/ 0, &arrayPtr); + if (varPtr == NULL) { + return TCL_ERROR; + } } + TclSetVarArray(varPtr); TclClearVarUndefined(varPtr); varPtr->value.tablePtr = PatchFiles: generic/tclVar.c Verified in 8.2 -- 08/31/1999 hobbs The above patch was not exactly correct. A correct version has been applied for 8.2.1. -- 09/18/1999 hobbs - foundin initialized to: "final: 8.0.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "array set in undefined namespace crashes tclsh"
- type initialized to: "Bug"
Ticket change [51e5acea3a] (rid 126209) by welch on 2000-10-26 08:31:15:
- closedate changed to: "2000-10-26T01:31:15"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [bd7bd5e23a] (rid 101912) by dgp on 2001-04-21 04:13:33:
- closedate changed to: "2001-04-20T21:13:33"
- closer changed to: "dgp"
- subsystem changed to: "07. Variables"