Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b00c2894d8c3ca273d19a4b6711baae8de536955410d289b3ad6e22e7dc09c97
Ticket: 167e0635db79f05d23d766376f6eed32b1572451
`make valgrind` detections
User & Date: dgp on 2024-04-12 20:19:38
Changes

  1. icomment:
    
    I see the problems arise when the format string is an empty string.
    Tests clock-1.3, clock-5.1, clock-28.1
    
    When the format string is empty, the value of size is 1.  It is not
    larger than 1.  Does that explain anything?
    
    I would expect the memcpy to copy a single NUL byte into the
    hPtr->key.string field.
    
    I don't know whether that should cause valgrind to think that
    the multi-byte hPtr->key.oneWordValue field is initialized.
    
    This is a CentOS Linux 7.9.2009 system.  The valgrind program
    I am running claims to be version valgrind-3.15.0
    
  2. login: "dgp"
  3. mimetype: "text/plain"