Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 02b5172395d1f86c5512a1f149b253c02f54023c
Ticket: 442665ffffffffffffffffffffffffffffffffff
[gets] corrupts freed object
User & Date: jikamens on 2001-07-19 06:19:49
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The function Tcl_GetsObjCmd in tclIOCmd.c can corrupt a
    freed object if it is called with objc == 3.  This is
    because it retrieves resultPtr and does not increment
    its reference count, but then calls Tcl_ObjSetVar2,
    which causes the retrieved resultPtr object to be
    released.  I will attach a patch, which I hope is
    correct (if not, please E-mail me and let me know why,
    so I can understand all of this better; I barely
    understand it).
    
    
  4. foundin changed to: "obsolete: 8.3.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jikamens"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "gets corrupts freed object"
  11. type changed to: "Bug"