Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 16cb93ece777dd92a1438443d9db892b00436f0e02fe55f9914c1b3166d446c1
Ticket: 40f628e8e343f5e3cbef0cd41dff719ef2a11e34
Tcl_ListObjReplace() callers fail to handle errors (LIST_MAX) properly
User & Date: serhiy.storchaka on 2026-10-14 18:44:45
Changes

  1. icomment:
    The remaining unchecked call was in <nowiki>[oo::define]</nowiki> (MagicDefinitionInvoke(), with a "TODO: overflow?" comment): if Tcl_ListObjReplace() failed, the following Tcl_EvalObjv() would read past the end of the list elements. Proposed fix in branch [/timeline?r=oo-define-list-overflow|oo-define-list-overflow].
    
    I did not find similar issues in <nowiki>[self]</nowiki>: other unchecked appends in TclOO build small lists (introspection results) which cannot reach LIST_MAX.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"