Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 48570e9ba1c3cfebc5017f602c8a3f17a6aea39e0f6271e8a41eff9f1d1c8530
Ticket: 66da4d4228be65fea83fa7eb4f9e932b7951341d
Tcl_UtfToExternal buffer overwrite for non-BMP characters using utf-16 encoders
User & Date: apnadkarni on 2024-10-19 15:51:30
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    UTF-16 encoders write beyond destination space when encoding non-BMP characters.
    
    ```
    % set utf8 [binary decode hex 41f09f988042]; encoding convertfrom utf-8 $utf8
    A😀B
    % testencoding Tcl_UtfToExternal utf-16le $utf8 {start end} {} 7 nread nwritten nchars
    Tcl_UtfToExternal wrote past output buffer
    ```
    
  5. foundin changed to: "9.0.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "44. UTF-8 Strings"
  15. title changed to:
    Tcl_UtfToExternal buffer overwrite for non-BMP characters using utf-16 encoders
    
  16. type changed to: "Bug"