Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 125371f964c5fd05d2d044a447127b717aeb07a7aa88173731702c04c583bfac
Ticket: f3cb2a32d60cf1386b08497b85434cf0177e7c6d
uninitialized value in format-2.18
User & Date: jan.nijtmans on 2023-03-06 20:55:51
Changes

  1. icomment:
    Proposed fix [05e83f801a8a2f3c|here]
    
    In Tcl 8.7, if Tcl_UniCharToUtf() is fed a lower surrogate, it checks if the previous Tcl_UniCharToUtf() call produced an upper surrogate. This previous result is stored in dst[0] and dst[1], but in this situation those two bytes are uninitialized. Initializing dst[0] just before the Tcl_UniCharToUtf() should help.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"
  4. resolution changed to: "Fixed"
  5. status changed to: "Pending"