Overview
| Artifact ID: | 8bf2356acd2e7e7aa73b4cd517bec8dae0f0340e8db91a1fcd0a7369b877ba7a |
|---|---|
| Ticket: | 7cddd2845cab04ddeb4d735df0643eb8637a4739
Memory access crash if more than INT_MAX operands to an uncompiled command |
| User & Date: | apnadkarni on 2023-04-13 15:03:55 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed 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 changed to: "9.0"
- is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
Memory access crash - large list, expansion operator {*}, uncompiled - type changed to: "Bug"