Overview
| Artifact ID: | da4d956490846c0156a8cc59dd4d9d2a01890918 |
|---|---|
| Ticket: | 2878945fffffffffffffffffffffffffffffffff
Tcl_ExternalToUtf(...dst, dstLen,...) writes to dst[dstLen] |
| User & Date: | dgp on 2009-10-14 14:56:01 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
The docs of Tcl_ExternalToUtf() are unclear on the boundaries of the write buffer. They say "... and up to dstLen converted bytes are stored in dst." which suggests bytes will be written in dst[0] up to dst[dstLen-1]. And that appears to be an accurate description of what the underlying ToUtfProc() does. However, then Tcl_ExternalToUtf() appends a terminating NUL character, and if the ToUtfProc has used all dstLen bytes, T_ETU writes to dst[dstLen].
- foundin changed to: "obsolete: 8.5.7"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "10. Objects"
- title changed to:
Tcl_ExternalToUtf(...dst, dstLen,...) writes to dst[dstLen]
- type changed to: "Bug"