Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c61c0041b76ad1616a263960d9e42d08a1324279b185c6146c3d26ae2cf78b7f
Ticket: f5eadcbf9a6b1b4cff5aaf0da5aa5706430dfb7c
passing pointer to uninitialized memory leads Tcl_UniCharToUtf() to corrupt data
User & Date: pooryorick on 2023-04-26 13:00:31
Changes

  1. icomment:
    Jan, first you get defensive and call this a non-issue, then you spam
    the ticket with test results from a work-in-progress branch in an
    attempt to distrct from the real issue:  Random data in uninitialized
    memory are causing the "format-2.19" test to fail under a build of the
    pyk-Tcl_AppendObjToObj branch configured with "TCL_UTF_MAX = 3"?
    
    Did you even notice that those failing tests hard-coded a dependence on
    uninitialized data, and just need to be adjusted for the fact that the
    memory area is now initialized?
    
    I'm not in favor of the memset() solution.  I'm in favor of deleting a
    whole bunch of "TCL_UTF_MAX = 3" code.
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"