Overview
| Artifact ID: | 47ddb941a656353ae5118cbf73adcbf3b5e6208c |
|---|---|
| Ticket: | 16896d49fd10c97d3a6d6f5833760302c5e47086
Tcl_DString append to self can crash. |
| User & Date: | dah on 2016-06-22 01:06:10 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "8.6.5"
- is_private changed to: "0"
- login: "dah"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "dah"
- subsystem changed to: "44. UTF-8 Strings"
- title changed to:
Add usage note to Tcl_DStringAppend, Tcl_DStringAppendElement to help prevent subtle and dangerous bugs
- type changed to: "RFE"