Artifacts Associated With Ticket 40f628e8e3
Ticket change [af0d71ab78] (rid 143921) by dgp on 2015-11-19 20:16:41:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% set l [lrepeat 268435455 A]; concat % set m [linsert $l end {*}$l]; concat % llength $m 268435455 This ought to panic on an attempt to make a list longer than LIST_MAX. - foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "14. List Object"
- title initialized to:
Tcl_ListObjReplace() fails to handle LIST_MAX properly
- type initialized to: "Bug"
Ticket change [e847913b7c] (rid 143923) by dgp on 2015-11-19 20:26:36:
- icomment:
Sorry. ought to error, not panic.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [7018efba98] (rid 143924) by dgp on 2015-11-20 14:55:10:
- icomment:
Same botch in different clothing: % set l [lrepeat 300000000 A]; concat % set m [concat $l $l]; concat % llength $m 300000000
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [c45c5d87db] (rid 143925) by dgp on 2015-11-20 15:01:37:
- login: "dgp"
- mimetype: "text/plain"
- title changed to:
Tcl_ListObjReplace() callers fail to handle errors (LIST_MAX) properly
Ticket change [ccb0c05e5d] (rid 143932) by dgp on 2015-11-20 16:44:22:
- assignee changed to: "dkf"
- icomment:
Mostly fixed, [oo::*define] and [self] might still have some extreme low probability issue here.
- login: "dgp"
- mimetype: "text/plain"
Ticket change [16cb93ece7] (rid 258069) by serhiy.storchaka on 2026-10-14 18:44:45:
- 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.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [708845448c] (rid 261707) by oehhar on 2026-11-14 19:04:38:
- closedate changed to: "2461359.2948875465"
- closer changed to: "oehhar"
- icomment:
Fix looks reasonable. No additional test failures. Merged to: * main [f9265775] * core-9-0-branch [72ed6aee] Bug closing. Thanks, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "oehhar"