Artifacts Associated With Ticket 218453
Ticket change [d176af2a49] (rid 113354) by nobody on 2000-10-26 01:00:34:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 581 Bug Version: 8.1a2 SubmitDate: '1998-05-21' LastModified: '1998-11-19' Severity: SER Status: Released Submitter: hershey ChangedBy: rjohnson OS: All OSVersion: NA Machine: NA FixedDate: '1998-11-19' FixedInVersion: 8.0.5 ClosedDate: '2000-10-25' In Tcl 8.1a2, on Windows, the function TclGetDefaultStdChannel, in win/tclWinChan.c, does not check the return value of Tcl_MakeFileChannel before passing it to Tcl_SetChannelOption. However, it is possible, if somewhat unlikely, for Tcl_MakeFileChannel to fail, when there is some confusion over handles and the mode in which they were opened. It is better to return an indication of failure than to get a segmentation violation. I have appended the obvious patch. Ian Taylor [email protected] *** tclWinChan.c.~1~ Fri Apr 10 17:47:12 1998 --- tclWinChan.c Fri Apr 10 17:47:17 1998 *************** TclpGetDefaultStdChannel(type) *** 1180,1185 **** --- 1180,1188 ---- } channel = Tcl_MakeFileChannel(handle, mode); + if (channel == NULL) { + return NULL; + } /* * Set up the normal channel options for stdio handles. This bug also appeared in Tcl 8.0. I fixed it in version 8.0.5. The change will propagate up to 8.1. - Ray
- foundin initialized to: "obsolete: 8.1a2"
- 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:
Patch for missing error check in TclGetDefaultStdChannel on
- type initialized to: "Bug"
Ticket change [620a15d7fd] (rid 92344) by welch on 2000-10-26 08:22:16:
- closedate changed to: "2000-10-26T01:22:16"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [5e396f6d52] (rid 115598) by dgp on 2001-04-17 04:23:41:
- closedate changed to: "2001-04-16T21:23:41"
- closer changed to: "dgp"
- subsystem changed to: "27. Channel Types"