Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 29ee7f13425fa614c4350dc934f28d181821dde8
Ticket: 427196ffffffffffffffffffffffffffffffffff
fconfigure -buffer in midread =>segfault
User & Date: andreas_kupries on 2001-07-18 00:10:07
Changes

  1. assignee changed to: "andreas_kupries"
  2. icomment:
    Logged In: YES 
    user_id=75003
    
    The reason for the crash is a combination of two things: 
    First, the buffer allocated when -buffersize 10 was set is 
    reused in the second read. And second, the IO system 
    blithely uses the set buffersize as the number of bytes to 
    read and not the actual size of the buffer in use. This 
    causes the overwrite beyond the end of the buffer and the 
    subsequent crash when closing the channel.
    
    The relevant location is tclIO.c, line 5004 in "GetInput".
    
    A patch will follow shortly.
    
    
  3. login: "andreas_kupries"
  4. mimetype: "text/plain"
  5. priority changed to: "7 High"
  6. username: "andreas_kupries"