Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1fe0fe507462ef2c90d2627685459d3b3dd8fc0f
Ticket: 408840ffffffffffffffffffffffffffffffffff
Patch for TIP 17
User & Date: dgp on 2001-03-22 05:26:31
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    Problem appears to be line 849 of the patched
    generic/tclIO.c .  It attempts to write to statePtr->flags
    after returning from Tcl_Close(), which may have freed
    statePtr.
    
    Either rewrite Tcl_UnregisterChannel to avoid this, or
    use Tcl_Preserve to prevent a free() until statePtr is
    no longer needed.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"