Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e3216df1aa23a968fd02624b2444463961659940
Ticket: 3084489fffffffffffffffffffffffffffffffff
Serious issue: Tcl_DuplicateObj isn't making a copy?
User & Date: msofer on 2010-10-12 05:10:13
Changes

  1. icomment:
    The problem is that the C-array returned by TLOGE is meant to be only for reading, and this app is WRITING to it (sorting the elements in place). Again, TLOGE's 8.5 man page is clear: "The memory pointed to is
    managed by Tcl and should not be freed or written to by the caller."
    
    The 8.4 man page refers only not freeing the mem, so this usage was not explicitly invalid in 8.4.
    
    The solution is to make your own copy: Tcl_NewListObj(...), then sort that in place.
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"