Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e4991f1bd6e1fe8dc8c8d044f3ef1806008cba611d8b00cb06c7108e2edf76e4
Ticket: f5eadcbf9a6b1b4cff5aaf0da5aa5706430dfb7c
passing pointer to uninitialized memory leads Tcl_UniCharToUtf() to corrupt data
User & Date: pooryorick on 2023-04-25 20:36:50
Changes

  1. comment changed to:
    In various locations in the source code uninitialized data is passed to
    <code>Tcl_UniCharToUtf()</code> via its <code>*buf</code> argument.  In addition to holding
    the result of <code>Tcl_UniCharToUtf()</code>, since [e2278643dc330026] in 2015
    <code>*buf</code> also serves to maintain the state of an ongoing surrogate character
    transformation, and random data in the uninitialized storage can cause
    <code>Tcl_UniCharToUtf()</code> to corrupt data.
    
  2. icomment: "Fixed in [f5eadcbf9a6b1b4c]."
  3. login: "pooryorick"
  4. mimetype: "text/x-fossil-wiki"
  5. status changed to: "Pending"