Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8044de5c4d337daa5dae3a693f53ee9b3b81080f1e096a9ce6931ac851c1ad4c
Ticket: 94c6511e870541dd5c4fbf8af014a07868b30f37
Undefined pointer arithmetic in `INST_LREPLACE` when compiled `linsert`, `lreplace` or `ledit` insert two or more elements
User & Date: apnadkarni on 2026-11-07 11:43:01
Changes

  1. closedate changed to: "2461351.9882061225"
  2. closer changed to: "apnadkarni"
  3. icomment:
    Fixed for 9.0 in [77a0c6a995] and 9.1 in [81a4f948d7].
    
    The original type was signed. I have no idea as to what the rationale was for making them unsigned leading to undefined behaviour. So reverting back to signed as in the original code and the patch.
    
    Whoever feels these need to be unsigned please indicate as to why.
    
  4. login: "apnadkarni"
  5. mimetype: "text/x-fossil-plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"