Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 01b14bbec138ab490f95aec811f4b3f65932c2d71115017a2cf0e482f281c32a
Ticket: 33f9b4de51219958c4fe65502c2a1c4ba84a9ffa
Tcl_ExternalToUtf - buffer overflow on output on invalid encoding
User & Date: apnadkarni on 2024-08-22 16:32:19
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    The following demonstrates overwrite of output buffer if high surrogate not followed by low surrogate at output buffer limit.
    
    ```
    % set high [string range [encoding convertto utf-16le \U1f600] 0 1]
    % set result [testencoding Tcl_ExternalToUtf utf-16le ${high}\xa8\x9e {start end noterminate tcl8} 0 5 nread nwrote]
    Tcl_ExternalToUtf wrote past output buffer
    ```
    
  5. foundin changed to: "9.0b3"
  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: "- New Builtin Commands"
  15. title changed to:
    Tcl_ExternalToUtf - buffer overflow on output on invalid encoding
    
  16. type changed to: "Bug"