Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 783b8daec5ff7e9e9d0110e1643f765b22a9884b
Ticket: 3084489fffffffffffffffffffffffffffffffff
Serious issue: Tcl_DuplicateObj isn't making a copy?
User & Date: msofer on 2010-10-10 18:18:41
Changes

  1. closedate changed to: "2010-10-10T11:18:41"
  2. closer changed to: "msofer"
  3. icomment:
    This is almost certainly a bug in mk stuff, not Tcl. Please report to that project, or provide evidence that it is a Tcl problem.
    
    I could not easily find the source for lminus, so can't tell for sure. But here's my guess: there is a call of TclListObjGetElements, and then a sort is done in place. This is NOT a valid usage. To quote the manual http://www.tcl.tk/man/tcl8.5/TclLib/ListObj.htm: "The memory pointed to is managed by Tcl and should not be freed or written to by the caller."
    
    
  4. login: "msofer"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Pending"
  8. username: "msofer"