| Ticket UUID: | 2561267 | ||
| Title: | Tcl_SetObjLength can produce invalid strings | ||
| Type: | Bug | Created on: | 2009-02-03 16:25:09 |
| Submitter: | dgp | Assigned to: | dgp |
| Subsystem: | 10. Objects | Severity: | |
| Priority: | 5 Medium | Last modified: | 2009-02-26 22:12:07 |
| Status: | Open | Closed by: | |
| Resolution: | None | Closed on: | |
| Version: | obsolete: 8.6b1 | ||
| Description: | ||||
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. | ||||
| User Comments: | ||||
dgp added on 2009-02-03 23:25:41:
data_type - 110894 oops! wrong tracker. | ||||
