Overview
| Artifact ID: | 89ede3a537191601c28bb906a1246e5e82e3545082ffb1c8ea2fa121c5d60c7c |
|---|---|
| Ticket: | 167e0635db79f05d23d766376f6eed32b1572451
`make valgrind` detections |
| User & Date: | sebres on 2024-04-10 12:07:00 |
Changes
- icomment:
<i>repeated, because of wrong type (Markdown) in previous comment that destroyed it.</i> 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`.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"