Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 583f1bef7f084c26ae0e9070374c3158e55eb3dbac3d6baceb8b0820ce7fe73d
Ticket: 8c4082563d6a7ebda4b8804e221a0de31c4c40e4
Tcl_Eval() result can be truncated at NUL
User & Date: sebres on 2024-06-23 13:44:11
Changes

  1. closedate changed to: "2460485.07235287"
  2. closer changed to: "sebres"
  3. icomment:
    Null-char is not always equal 0.<br/>
    0-byte normally always means a NTS-zero char and can cause end of string in some internal operations...<br/>
    Moreover in Tcl's utf-8 it is not proper character: you have to use either `\xC0\x80` instead of `\0`-char (for pure utf-8 string tcl-objects) or `Tcl_ExternalToUtf`, `Tcl_ExternalToUtfDString` (for strings from external data using encoding) or `Tcl_NewByteArrayObj`, `Tcl_SetByteArrayObj` etc (for binary data).
    
    Thus closed as invalid.
    
  4. login: "sebres"
  5. mimetype: "text/x-markdown"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"