Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ec3791f993defd16109993298746923f5972690189938722d534fd785dea1e61
Ticket: 28de50dcee4f6888eaed987bf1d795ac67138b5f
Crash on invalid Unicode code points
User & Date: apnadkarni on 2026-11-25 07:10:22
Changes

  1. icomment:
    The following is a corrected version. The crash only shows immediately with memory debugging enabled.
    
    ```
    % set u 0xef1401ef
    0xef1401ef
    % teststringobj newunicode 0 $u
    �
    % teststringobj newunicode 0 $u
    hi guard byte 0 is 0x0
    total mallocs                 103338
    total frees                    93302
    current packets allocated      10036
    current bytes allocated       645476
    maximum packets allocated      10038
    maximum bytes allocated       645597
    high guard failed at 00000174A9AFE148, c:\src\tcltk\wip\tcl\win\..\generic\tclObj.c 1335
    3 bytes allocated at (c:\src\tcltk\wip\tcl\win\..\generic\tclStringObj.c 156)
    Memory validation failure
    ```
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"