Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 25039919973d2b1341486007002df207c6c83d21df8bd8d14073faa047dbeaae
Ticket: f7495f63c01ea80069198ac183e1e0cc8873dabe
valgrind reports uninitialized memory access running the test suite
User & Date: sebres on 2026-03-11 20:26:26
Changes

  1. closedate changed to: "2461111.3516914351"
  2. closer changed to: "sebres"
  3. icomment:
    Are you in mode to cherry-pick matching words, Jan?..
    
    Also you seemed to miss "or to use it in certain operations" after "access the struct as a whole".
    
    Anyway, because it is valid to optimize the code in the way I described above (if the compiler knows that after keyPtr->type there are still 4 bytes for padding), I can not exclude that by code like this (e. g. using ARM instructions like LDR, LDM or LDP) it would not cause SF by out-of-bounds memory access:
    
    ```asm
    ldp x0, x1, [x2];  // load pair keyPtr->interp and keyPtr->type with single instruction
                    ;  // thereby x0 contains pointer keyPtr->interp, 
                    ;  //         w1 contains keyPtr->type as int (lower 32-bits word of x1)
    ...
    bl Tcl_LimitRemoveHandler
    ```
    Can you really swear that it won't happen?
    
  4. login: "sebres"
  5. mimetype: "text/x-markdown"