Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7d81181288556bdfcf5a7d46ec26c5b3270ab61341262cbad25d76d22a25caa1
Ticket: 13d3c0d764fa4cf1c0cf0577924d7a0be5a3fd2b
lset on empty list is allowed when index argument is large
User & Date: serhiy.storchaka on 2026-10-17 16:03:05
Changes

  1. foundin changed to: "9.0.5, 9.1.0"
  2. icomment:
    The ambiguity can be resolved locally in TclLsetFlat(), without changing the index encoding (so Tk is not affected): when the list is empty and the index comes back as TCL_SIZE_MAX, evaluate it again as if the list had one element, and accept it only if this gives 1 (end+1 and similar forms).
    Proposed fix in branch [/timeline?r=lset-empty-huge-index|lset-empty-huge-index], tests lset-18.1 to lset-18.5. 8.6 is not affected.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"