Skip to content
Tcl Source Code Check-in [c1e3c4a857]
Login

Check-in [c1e3c4a857]

Overview
Comment: * generic/tclIOCmd.c (Tcl_GetsObjCmd): Fixed bug #504642 as reported by Brian Griffin <[email protected]>, using his patch. Before the patch the generic I/O layer held an unannounced reference to the interp result to store the read line into. This unfortunately has disastrous results if the channel driver executes a tcl script to perform its operation, this freeing the interp result. In that case we are dereferencing essentially a dangling reference. It is not truly dangling because the object is in the free list, but this only causes us to smash the free list and have the error occur later somewhere else. The patch simply creates a new object for the line and later sets it into the interp result when we are done with reading.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c1e3c4a857a5767bf888e91ad5846363f80d37d6
User & Date: andreas_kupries on 2002-01-17 20:35:20.000
Other Links: manifest | tags
Context
2002-01-18
03:22
* generic/tclThreadTest.c: * mac/tclMacChan.c: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tc... check-in: 07c625a70c user: das tags: trunk
2002-01-17
20:35
* generic/tclIOCmd.c (Tcl_GetsObjCmd): Fixed bug #504642 as reported by Brian Griffin <bgriffin... check-in: c1e3c4a857 user: andreas_kupries tags: trunk
15:24
doc correction check-in: 05a0a92d54 user: dgp tags: trunk
Changes