Overview
| Artifact ID: | 791cc4c9070b95c0090f74b23683d6f4b5a19f07bb4c9864ae3a3131caa94444 |
|---|---|
| Ticket: | 4789e18fcba7534cf2ca908eee2cca032e955c6e
signed integer overflow during obj-31.6 |
| User & Date: | chrstphrchvz on 2022-02-17 00:12:05 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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> - foundin changed to: "core-8-6-branch"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "13. Index Object"
- title changed to: "signed integer overflow during obj-31.6"
- type changed to: "Patch"