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

Check-in [fa97315c9c]

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 | core-8-3-1-branch
Files: files | file ages | folders
SHA1: fa97315c9cab2d4a166109a69a1f7a3bdc9a40cc
User & Date: andreas_kupries on 2002-01-17 20:35:39.000
Other Links: branch diff | manifest | tags
Context
2002-01-21
20:37
* generic/tclIO.c (WriteChars): Fix for SF #506297, reported by Martin Forssen <[email protected]... check-in: c667016762 user: andreas_kupries tags: core-8-3-1-branch
2002-01-17
20:35
* generic/tclIOCmd.c (Tcl_GetsObjCmd): Fixed bug #504642 as reported by Brian Griffin <bgriffin... check-in: fa97315c9c user: andreas_kupries tags: core-8-3-1-branch
2001-12-29
00:54
* library/init.tcl (auto_execok): make sure env(COMSPEC) on Windows is executed with the right cas... check-in: bbecba2801 user: hobbs tags: core-8-3-1-branch
Changes