Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d8119c274e1bdd9c8605e6f1f9edec3cefde1c22a342f5518e3f21dd3957a05e
Ticket: c9e68eb6ca40bb844b6c5d172a8e203f4b419857
tclEncoding.c: undefined behavior involving NULL pointers
User & Date: cjmcdonald on 2025-09-23 22:54:11
Changes

  1. closedate changed to: "2460942.4543008"
  2. closer changed to: "cjmcdonald"
  3. icomment:
    In win/tclWinInit.c the dw result from GetEnvironmentVariableW should be checked against the size of "wBuf", not "buf", i.e.:
    <pre>
    	dw >= (sizeof(wBuf) / sizeof(wBuf[0]))
    </pre>
    Or simply:
    <pre>
    	dw >= MAX_PATH
    </pre>
    which I think is preferable because then the buffer size (in wide chars) is specified in the same form when calling GetEnvironmentVariableW and when checking its result.
    
  4. login: "cjmcdonald"
  5. mimetype: "text/x-fossil-wiki"