Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. 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].
    
  4. foundin changed to: "obsolete: 8.5.7"
  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: "10. Objects"
  11. title changed to:
    Tcl_ExternalToUtf(...dst, dstLen,...) writes to dst[dstLen]
    
  12. type changed to: "Bug"