Overview
| Artifact ID: | 02b5172395d1f86c5512a1f149b253c02f54023c |
|---|---|
| Ticket: | 442665ffffffffffffffffffffffffffffffffff
[gets] corrupts freed object |
| User & Date: | jikamens on 2001-07-19 06:19:49 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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).
- foundin changed to: "obsolete: 8.3.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jikamens"
- subsystem changed to: "16. Commands A-H"
- title changed to: "gets corrupts freed object"
- type changed to: "Bug"