Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 767c6f6499c47f8586046323f29167c6a0066bcd54cd95d6ef17754cdaff253f
Ticket: 66ffafd309111bc7a5044c83636f5098b5804f43
Truncated encoding for DBCS results in infinite loop and running out of memory
User & Date: apnadkarni on 2023-07-01 13:55:03
Changes

  1. icomment:
    Same test with 8.7
    
    ```
    % encoding convertfrom gb12345 x
    unexpected byte sequence starting at index 0: '\x78'
    ```
    
    No infinite loop but still not what I would expect. With the default tcl8 profile, should not raise an error but instead store U+FFFD as is done for other encodings in case of truncation. For example,
    
    ```
    % codep [encoding convertfrom utf-16 x]
    U+00FFFD
    ```
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"