Artifacts Associated With Ticket 7cddd2845c
Ticket change [8bf2356acd] (rid 212733) by apnadkarni on 2023-04-13 15:03:55:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- 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. - foundin initialized to: "9.0"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
Memory access crash - large list, expansion operator {*}, uncompiled - type initialized to: "Bug"
Ticket change [2e72ad68ed] (rid 213891) by apnadkarni on 2023-04-26 14:53:41:
- assignee changed to: "apnadkarni"
- icomment:
The issue is not with the list command specifically but with > INT_MAX operands to any uncompiled command.
- login: "apnadkarni"
- mimetype: "text/plain"
- title changed to:
Memory access crash if more than INT_MAX operands to an uncompiled command
Ticket change [6eca3d181e] (rid 214085) by apnadkarni on 2023-04-29 03:18:39:
- closedate changed to: "2460063.63795347"
- closer changed to: "apnadkarni"
- icomment: "Fixed in [eb734aab39]. Now raises Tcl exception."
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"