Skip to content
Tcl Source Code History Of Ticket b6afa337376342ff
Login

History Of Ticket b6afa337376342ff

Artifacts Associated With Ticket b6afa337376342ff

  1. Ticket change [810e8383ad] (rid 198339) by chrstphrchvz on 2022-02-19 13:49:20:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      
      Example script and corresponding output with UBSan error (<tt>-fsanitize=signed-integer-overflow</tt>, excludes any previously reported errors):
      
      <blockquote><pre>
      proc p {} {
      set a &#91;string repeat &#91;string repeat a 1023&#93; 1049601&#93;
      set a2 &#91;string cat a $a $a&#93;
      return &#91;string toupper $a2&#93;
      }
      set x &#91;p&#93;
      </pre>
      <pre>
      <span style="font-weight:bold">tcl/generic/tclExecute.c:5520:6:<span style="color:firebrick"> runtime error: </span>signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'</span>
      </pre>(tclsh eventually exited normally)</blockquote>
      
      
      Can be prevented with same approach used in [a03e9793d4]; see attached patch.
      
    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: "10. Objects"
    14. title initialized to:
      signed integer overflow in TclInitStringRep() macro
      
    15. type initialized to: "Patch"
  2. Add attachment "b6afa33737.diff" [751486b033] (rid 198340) by chrstphrchvz on 2022-02-19 13:49:38.

  3. Ticket change [c4773d1c0f] (rid 198869) by jan.nijtmans on 2022-03-08 15:18:30:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459647.1378531"
    3. closer changed to: "jan.nijtmans"
    4. comment changed to:
      Example script and corresponding output with UBSan error (<tt>-fsanitize=signed-integer-overflow</tt>, excludes any previously reported errors):
      
      <blockquote><pre>
      proc p {} {
      set a &#91;string repeat &#91;string repeat a 1023&#93; 1049601&#93;
      set a2 &#91;string cat a $a $a&#93;
      return &#91;string toupper $a2&#93;
      }
      set x &#91;p&#93;
      </pre>
      <pre>
      <span style="font-weight:bold">tcl/generic/tclExecute.c:5520:6:<span style="color:firebrick"> runtime error: </span>signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'</span>
      </pre>(tclsh eventually exited normally)</blockquote>
      
      
      Can be prevented with same approach used in [a03e9793d4]; see attached patch.
      
    5. icomment: "Fixed [a314f4ea6233c15d|here]. Thanks!"
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"