Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 566f03af24b23e365bca71da0b176298036a5c2b
Ticket: 1191369fffffffffffffffffffffffffffffffff
Tcl_LinkVar memory corruption causing crashes
User & Date: msofer on 2005-10-22 22:27:35
Changes

  1. 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.
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. resolution changed to: "Duplicate"
  5. status changed to: "Closed"
  6. username: "msofer"