Skip to content
Tcl Source Code History Of Ticket 7cddd2845cab04dd
Login

History Of Ticket 7cddd2845cab04dd

Artifacts Associated With Ticket 7cddd2845cab04dd

  1. Ticket change [8bf2356acd] (rid 212733) by apnadkarni on 2023-04-13 15:03:55:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      The `{*}` expansion works (or seems to) for large lists when the script is compiled. Uncompiled scripts result in invalid memory access and a crash.
      
      ```
      % set l [list {*}[testbigdata list 0x7fffffff]]; llength $l
      2147483647 -> works
      % unset l
      % set list list
      list
      % set l [$list {*}[testbigdata list 0x7fffffff]]; llength $l
      ...crash...
      ```
      
      Number of arguments supported is limited to MAX_INT (I think) but (a) it is curious that the compiled version works but not uncompiled, and (b) rather than invalid memory, a Tcl exception should be raised or if that is not possible, a controlled Tcl_Panic rather than writes to random memory.
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to:
      Memory access crash - large list, expansion operator {*}, uncompiled
      
    16. type initialized to: "Bug"
  2. Ticket change [2e72ad68ed] (rid 213891) by apnadkarni on 2023-04-26 14:53:41:

    1. assignee changed to: "apnadkarni"
    2. icomment:
      The issue is not with the list command specifically but with > INT_MAX operands to any uncompiled command.
      
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
    5. title changed to:
      Memory access crash if more than INT_MAX operands to an uncompiled command
      
  3. Ticket change [6eca3d181e] (rid 214085) by apnadkarni on 2023-04-29 03:18:39:

    1. closedate changed to: "2460063.63795347"
    2. closer changed to: "apnadkarni"
    3. icomment: "Fixed in [eb734aab39]. Now raises Tcl exception."
    4. login: "apnadkarni"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"