Skip to content
Tcl Source Code History Of Ticket e32a44e2e4
Login

History Of Ticket e32a44e2e4

Artifacts Associated With Ticket e32a44e2e4

  1. Ticket change [a4b175c4b6] (rid 204947) by chrstphrchvz on 2022-10-02 11:26:50:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Example script (not much usage of <tt>Tcl_Merge()</tt> in core Tcl):
      
      <blockquote><pre>
      set 1k_spaces &#91;string repeat { } &#91;::tcl::mathop::&lt;&lt; 1 10&#93;&#93;
      set 1M_spaces &#91;string repeat $1k_spaces &#91;::tcl::mathop::&lt;&lt; 1 10&#93;&#93;
      set 1G_spaces &#91;string repeat $1M_spaces &#91;::tcl::mathop::&lt;&lt; 1 10&#93;&#93;
      
      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>
      
    5. foundin initialized to: "core-8-6-branch"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "chrstphrchvz"
    13. subsystem initialized to: "14. List Object"
    14. title initialized to: "Tcl_Merge(): signed integer overflow"
    15. type initialized to: "Patch"
  2. Add attachment "e32a44e2e49e.diff" [4889a11e21] (rid 204949) by chrstphrchvz on 2022-10-02 11:28:30.

  3. Ticket change [d9507643c5] (rid 205041) by jan.nijtmans on 2022-10-06 10:23:32:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459858.93301984"
    3. closer changed to: "jan.nijtmans"
    4. icomment: "Should be fixed [0e2b23ff845b1e1b|here]"
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"