Skip to content
Tcl Source Code History Of Ticket d282fcacd1
Login

History Of Ticket d282fcacd1

Artifacts Associated With Ticket d282fcacd1

  1. Ticket change [8543f7b807] (rid 198199) by chrstphrchvz on 2022-02-17 06:17:58:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      UBSan (<tt>-fsanitize=shift-base</tt>) errors for 32-bit <tt>long</tt>:
      
      <blockquote><pre>
      % binary scan \x00\x00\x00\x80 i myvar
      <span style="font-weight:bold">tcl/generic/tclBinary.c:2105:28:<span style="color:red"> runtime error: </span>left shift of 128 by 24 places cannot be represented in type 'long int'</span>
      1
      % binary scan \x80\x00\x00\x00 I myvar
      <span style="font-weight:bold">tcl/generic/tclBinary.c:2110:29:<span style="color:red"> runtime error: </span>left shift of 128 by 24 places cannot be represented in type 'long int'</span>
      1
      </pre></blockquote>
      
      This can be avoided by casting at least the most significant source byte to <tt>unsigned long</tt> before shifting; 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: "16. Commands A-H"
    14. title initialized to: "signed integer overflow in ScanNumber()"
    15. type initialized to: "Patch"
  2. Add attachment "scannumber.diff" [8dafa9ce36] (rid 198200) by chrstphrchvz on 2022-02-17 06:18:13.

  3. Ticket change [cb72eff41e] (rid 198434) by jan.nijtmans on 2022-02-23 15:49:34:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459634.15942809"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed [d7a73dbf01aedfc5|here]
      
      Thanks for the report and the patch!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"