Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 47ddb941a656353ae5118cbf73adcbf3b5e6208c
Ticket: 16896d49fd10c97d3a6d6f5833760302c5e47086
Tcl_DString append to self can crash.
User & Date: dah on 2016-06-22 01:06:10
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed 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 changed to: "8.6.5"
  6. is_private changed to: "0"
  7. login: "dah"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dah"
  13. subsystem changed to: "44. UTF-8 Strings"
  14. title changed to:
    Add usage note to Tcl_DStringAppend, Tcl_DStringAppendElement to help prevent subtle and dangerous bugs
    
  15. type changed to: "RFE"