Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 791cc4c9070b95c0090f74b23683d6f4b5a19f07bb4c9864ae3a3131caa94444
Ticket: 4789e18fcba7534cf2ca908eee2cca032e955c6e
signed integer overflow during obj-31.6
User & Date: chrstphrchvz on 2022-02-17 00:12:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    This command (equivalent to test obj-31.6) triggers signed integer overflow (undefined behavior), which the attached patch addresses:
    
    <blockquote><pre>
    % string index {} end--0x80000000    
    <span style="font-weight:bold">tcl/generic/tclUtil.c:3846:15:<span style="color:red"> runtime error: </span>negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself</span>
    <span style="font-weight:bold">tcl/generic/tclUtil.c:3770:26:<span style="color:red"> runtime error: </span>signed integer overflow: -1 + -2147483648 cannot be represented in type 'int'</span>
    </pre></blockquote>
    
  5. foundin changed to: "core-8-6-branch"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "chrstphrchvz"
  13. subsystem changed to: "13. Index Object"
  14. title changed to: "signed integer overflow during obj-31.6"
  15. type changed to: "Patch"