Skip to content
Tcl Source Code History Of Ticket 16896d49fd
Login

History Of Ticket 16896d49fd

Artifacts Associated With Ticket 16896d49fd

  1. Ticket change [47ddb941a6] (rid 147049) by dah on 2016-06-22 01:06:10:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      In light of http://core.tcl.tk/tk/info/787adc5ed7acb2a3
      
      I propose adding some guidance to the docs for Tcl_DStringAppend and Tcl_DStringAppendElement. These functions must never be given an argument where its memory overlaps with the memory in DString's string field (due to potential for realloc), even if the string is kept small, it still sets a bad example.
      
    5. foundin initialized to: "8.6.5"
    6. is_private initialized to: "0"
    7. login: "dah"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "dah"
    13. subsystem initialized to: "44. UTF-8 Strings"
    14. title initialized to:
      Add usage note to Tcl_DStringAppend, Tcl_DStringAppendElement to help prevent subtle and dangerous bugs
      
    15. type initialized to: "RFE"
  2. Add attachment "DString3.diff" [def46fb88a] (rid 147050) by dah on 2016-06-22 01:08:16.

  3. Ticket change [a4420fcb5a] (rid 147059) by dgp on 2016-06-22 15:45:29:

    1. icomment:
      
      Turns out we had similar troubles with
      appends of Tcl_Obj values:
      
      http://core.tcl.tk/tcl/tktview?name=2603158
      
      I think we're better off fixing the bug instead
      of documenting it, now that it's become clear.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [9e12fc28db] (rid 147061) by dgp on 2016-06-22 15:49:39:

    1. assignee changed to: "dgp"
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. title changed to: "Tcl_DString append to self can crash."
  5. Ticket change [c2da185527] (rid 147065) by dgp on 2016-06-22 18:06:47:

    1. closedate changed to: "2457562.25471692"
    2. closer changed to: "dgp"
    3. icomment: "Fixed on all branches."
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. type changed to: "Bug"