Overview
| Artifact ID: | 8e78a76a35d6f6f6029bc4f76fdd40d7c79248ccfdd5fce5d98444a088ee87ea |
|---|---|
| Ticket: | 5ec43cfd9bf974320c70faa342a017e4b7e70abb
UpdateStringOfList(): signed integer overflow |
| User & Date: | chrstphrchvz on 2022-10-04 06:14:57 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
…which this example script triggers and the attached patch prevents: <blockquote><pre> # s has string representation with length INT_MAX-1 set s [string repeat [string repeat {a} 14949] 143654] set l [list aa $s] puts [string is upper $l] </pre> <pre> <span style="font-weight:bold">tcl/generic/tclListObj.c:1988:14: <span style="color:firebrick">runtime error:</span> signed integer overflow: 2 + 2147483646 cannot be represented in type 'int'</span> max size for a Tcl value (2147483647 bytes) exceeded </pre> (tclsh aborts) </blockquote> - foundin changed to: "core-8-6-branch"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "14. List Object"
- title changed to: "UpdateStringOfList(): signed integer overflow"
- type changed to: "Patch"