Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a751f565cf8d5b74d783614d9e5e0517b7a9a44c
Ticket: 2603158fffffffffffffffffffffffffffffffff
Tcl_AppendObjToObj cannot append obj to self
User & Date: dgp on 2009-02-15 18:10:53
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    This will crash:
    
    Tcl_AppendObjToObj(objPtr, objPtr);
    
    Same problem with
    
    int numBytes;
    char *bytes
            = Tcl_GetStringFromObj(objPtr, &numBytes);
    Tcl_AppendToObj(objPtr, bytes, numBytes);
    
    and other equivalents.
    
    Same problem with
    
    int numChars;
    Tcl_UniChar *unicode
            = Tcl_GetUnicodeFromObj(objPtr, &numChars);
    Tcl_AppendUnicodeToObj(objPtr, unicode, numChars);
    
    The latest optimization for bytearray values
    does work.  That's the only case that does.
    (Good work, dkf!)
    
    
  4. foundin changed to: "obsolete: 8.5.6"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "10. Objects"
  11. title changed to: "Tcl_AppendObjToObj cannot append obj to self"
  12. type changed to: "Bug"