Overview
| Artifact ID: | 5762e4d8db8209f08609f0f63f2a155d750c535f |
|---|---|
| Ticket: | 2561267fffffffffffffffffffffffffffffffff
Tcl_SetObjLength can produce invalid strings |
| User & Date: | dgp on 2009-02-03 16:25:09 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
When Tcl_SetObjLength() truncates the bytelength of a value, there are no checks to verify that the new length respects the boundaries between legal multi-byte characters in Tcl's internal encoding. This means a truncating T_SOL call can corrupt the final character of the truncated value. Seems like the docs ought to at least warn callers of this possibility.
- foundin changed to: "None"
- 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: "None"
- title changed to: "Tcl_SetObjLength can produce invalid strings"
- type changed to: "Bug"