Overview
| Artifact ID: | 566f03af24b23e365bca71da0b176298036a5c2b |
|---|---|
| Ticket: | 1191369fffffffffffffffffffffffffffffffff
Tcl_LinkVar memory corruption causing crashes |
| User & Date: | msofer on 2005-10-22 22:27:35 |
Changes
- icomment:
Logged In: YES user_id=148712 The problem is that Tcl_LinkVar tries to set the variable to an obj with refCount 0. If that fails due to a trace (in the example, because the variable was read only), the obj's refcount is decremented by the SetVar code before returning, and the obj is freed. Therefore, the code in Tcl_LinkVar should not decrRefCount again. This is a special of [Bug 1334947], which supersedes it.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "msofer"