Artifacts Associated With Ticket 74cc95b563
Ticket change [15d56f773c] (rid 204972) by chrstphrchvz on 2022-10-04 06:31:42:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
…which these example scripts trigger and the attached patch prevents: <ul> <li><pre> # s has string representation with length INT_MAX-1 set s [string repeat [string repeat {a} 14949] 143654] set d1 [dict create aa $s] puts [string is upper $d1] </pre> <pre> <span style="font-weight:bold">tcl/generic/tclDictObj.c:539: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) </li> <li><pre> # s has string representation with length INT_MAX-1 set s [string repeat [string repeat {a} 14949] 143654] set d2 [dict create a $s z {}] puts [string is upper $d2] </pre> <pre> <span style="font-weight:bold">tcl/generic/tclDictObj.c:531:14: <span style="color:firebrick">runtime error:</span> signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'</span> max size for a Tcl value (2147483647 bytes) exceeded </pre> (tclsh aborts) </li> </ul> - foundin initialized to: "core-8-6-branch"
- is_private initialized to: "0"
- login: "chrstphrchvz"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "chrstphrchvz"
- subsystem initialized to: "15. Dict Object"
- title initialized to: "UpdateStringOfDict(): signed integer overflow"
- type initialized to: "Patch"
Add attachment "74cc95b563dd.diff" [6f9dbdf42e] (rid 204974) by chrstphrchvz on 2022-10-04 06:35:33.
Ticket change [3465c7eff9] (rid 205043) by jan.nijtmans on 2022-10-06 10:24:16:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459858.93352547"
- closer changed to: "jan.nijtmans"
- icomment: "Should be fixed [0e2b23ff845b1e1b|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"