Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8208078e0724c90f4f4f018267ee9189b56dd99331fa126f54349b4cf9f9f323
Ticket: 4f6a1ebd64cffa3ef795d83cb15d92c40cfb12bd
ensemble: segmentation fault when -subcommand and -map values are the same object
User & Date: dgp on 2017-11-30 18:18:57
Changes

  1. icomment:
    
    I prefer the fix in [d3ba3a9f51] . It directly addresses the need to protect the pointer returned by Tcl_ListObjGetElements() and thus directly solves the problem instead of handling one particular set of circumstances known to cause the problem.  And it's smaller.
    
    It does create and destroy one additional Tcl_Obj, but that's been engineered to be efficient already, and TclListObjCopy() only pays a large copying cost when it needs to, which is almost never, only for bug conditions like this.
    
  2. login: "dgp"
  3. mimetype: "text/plain"