Skip to content
Tcl Source Code History Of Ticket 40f628e8e343f5e3
Login

History Of Ticket 40f628e8e343f5e3

Artifacts Associated With Ticket 40f628e8e343f5e3

  1. Ticket change [af0d71ab78] (rid 143921) by dgp on 2015-11-19 20:16:41:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Severe"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "14. List Object"
    14. title initialized to:
      Tcl_ListObjReplace() fails to handle LIST_MAX properly
      
    15. type initialized to: "Bug"
  2. Ticket change [e847913b7c] (rid 143923) by dgp on 2015-11-19 20:26:36:

    1. icomment:
      
      Sorry.  ought to error, not panic.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [7018efba98] (rid 143924) by dgp on 2015-11-20 14:55:10:

    1. icomment:
      
      Same botch in different clothing:
      
      % set l [lrepeat 300000000 A]; concat
      % set m [concat $l $l]; concat
      % llength $m
      300000000
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [c45c5d87db] (rid 143925) by dgp on 2015-11-20 15:01:37:

    1. login: "dgp"
    2. mimetype: "text/plain"
    3. title changed to:
      Tcl_ListObjReplace() callers fail to handle errors (LIST_MAX) properly
      
  5. Ticket change [ccb0c05e5d] (rid 143932) by dgp on 2015-11-20 16:44:22:

    1. assignee changed to: "dkf"
    2. icomment:
      
      Mostly fixed, [oo::*define] and [self] might
      still have some extreme low probability issue here.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
  6. Ticket change [16cb93ece7] (rid 258069) by serhiy.storchaka on 2026-10-14 18:44:45:

    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"
  7. Ticket change [708845448c] (rid 261707) by oehhar on 2026-11-14 19:04:38:

    1. closedate changed to: "2461359.2948875465"
    2. closer changed to: "oehhar"
    3. icomment:
      Fix looks reasonable. No additional test failures.
      
      Merged to:
      
         *   main [f9265775]
         *   core-9-0-branch [72ed6aee]
      
      Bug closing.
      
      Thanks,
      Harald
      
    4. login: "oehhar"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "oehhar"