Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5762e4d8db8209f08609f0f63f2a155d750c535f
Ticket: 2561267fffffffffffffffffffffffffffffffff
Tcl_SetObjLength can produce invalid strings
User & Date: dgp on 2009-02-03 16:25:09
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "None"
  11. title changed to: "Tcl_SetObjLength can produce invalid strings"
  12. type changed to: "Bug"