Skip to content
Tcl Source Code History Of Ticket 2603158fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2603158fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2603158fffffffffffffffffffffffffffffffff

  1. Ticket change [a751f565cf] (rid 98772) by dgp on 2009-02-15 18:10:53:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.5.6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "10. Objects"
    11. title initialized to: "Tcl_AppendObjToObj cannot append obj to self"
    12. type initialized to: "Bug"
  2. Ticket change [7eb2db1e2c] (rid 97461) by dkf on 2009-02-16 03:27:16:

    1. icomment:
      I'd not expect the T_GSFO->T_ATO or T_GUFO->T_AUTO versions to work. There simply isn't quite enough information passed to Tcl's internals to be able to spot the sharing (if you think there is, consider the case where you're appending everything but the first character so a pointer equality test won't spot the issue...)
      
      However, T_AOTO should be able to cope: that's got precisely the right info to know when it has to be careful. (Or we can assume that expanding the buffers won't necessarily preserve the pointers to any character/unicode array, but will preserve the lengths, which is what I did. And that's why it won't work for the other cases.)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [61bbbcc455] (rid 92294) by dgp on 2009-02-16 11:06:30:

    1. icomment:
      
      fixed in HEAD
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [ef15c2ea32] (rid 108931) by dgp on 2009-03-31 00:48:09:

    1. closedate changed to: "2009-03-30T17:48:09"
    2. closer changed to: "dgp"
    3. icomment:
      
      fix backported.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"