Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 577d3f5a6f057629c93fd05384d22e651b57a2595d71329f4ab585a0b4ae9de5
Ticket: 167e0635db79f05d23d766376f6eed32b1572451
`make valgrind` detections
User & Date: sebres on 2024-04-10 12:02:51
Changes

  1. icomment:
    Yes, that was my assumption too (therefore I wanted to debug that deeper)...<br/>
    However, before [9d7596c1381ec788] (where Don's valgrind produces the issue) the checks for bytes and length were inverted (length firstly), so if it was not some UB-similar thing by compiler optimization, and was indeed uninitialized length, I tried to rewrite it more similar to macro `TclGetString*` which firstly checks bytes and seems not bother in valgrind. Although 8.7/9.0 tcl-core initializes bytes in TclNewObj or whatever (where they set to `0` and `&tclEmptyString`) or by `TclInitEmptyStringRep`.
    
  2. login: "sebres"
  3. mimetype: "text/x-markdown"