Skip to content
Tcl Source Code History Of Ticket 218453
Login

History Of Ticket 218453

Artifacts Associated With Ticket 218453

  1. Ticket change [d176af2a49] (rid 113354) by nobody on 2000-10-26 01:00:34:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
      
    4. foundin initialized to: "obsolete: 8.1a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      Patch for missing error check in TclGetDefaultStdChannel on 
      
    11. type initialized to: "Bug"
  2. Ticket change [620a15d7fd] (rid 92344) by welch on 2000-10-26 08:22:16:

    1. closedate changed to: "2000-10-26T01:22:16"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [5e396f6d52] (rid 115598) by dgp on 2001-04-17 04:23:41:

    1. closedate changed to: "2001-04-16T21:23:41"
    2. closer changed to: "dgp"
    3. subsystem changed to: "27. Channel Types"