Artifacts Associated With Ticket e32a44e2e4
Ticket change [a4b175c4b6] (rid 204947) by chrstphrchvz on 2022-10-02 11:26:50:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
Example script (not much usage of <tt>Tcl_Merge()</tt> in core Tcl): <blockquote><pre> set 1k_spaces [string repeat { } [::tcl::mathop::<< 1 10]] set 1M_spaces [string repeat $1k_spaces [::tcl::mathop::<< 1 10]] set 1G_spaces [string repeat $1M_spaces [::tcl::mathop::<< 1 10]] testpanic $1G_spaces $1G_spaces </pre></blockquote> Output containing UBSan error, which the attached patch avoids: <blockquote><pre> $ ./tcltest script.tcl </pre> (some time passes) <pre> <span style="font-weight:bold">tcl/generic/tclUtil.c:1596:14: <span style="color:firebrick">runtime error:</span> signed integer overflow: 1073741826 + 1073741826 cannot be represented in type 'int'</span> max size for a Tcl value (2147483647 bytes) exceeded </pre> (tcltest aborts, though before <tt>TestpanicCmd()</tt> can directly call <tt>Tcl_Panic()</tt>.) </blockquote> - 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: "14. List Object"
- title initialized to: "Tcl_Merge(): signed integer overflow"
- type initialized to: "Patch"
Add attachment "e32a44e2e49e.diff" [4889a11e21] (rid 204949) by chrstphrchvz on 2022-10-02 11:28:30.
Ticket change [d9507643c5] (rid 205041) by jan.nijtmans on 2022-10-06 10:23:32:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459858.93301984"
- 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"