Overview
| Artifact ID: | 864f431019e1409894d780d701e9fcb9534d2a4b91d90366bc1a8f9586b2a73f |
|---|---|
| Ticket: | a814ee5bbdb2bbd512397e69704870e14b861985
string equal,compare -length option fails for large indices |
| User & Date: | apnadkarni 2023-04-04 05:40:50 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
Multiple failure modes when a large length is specified for the `-length` option to `string equal|compare`. ``` % set s1 [string cat [string repeat a 0xfffffffe] X]; string length $s1 4294967295 % set s2 [string cat [string repeat a 0xfffffffe] Y]; string length $s2 4294967295 % string equal -length 0xffffffff $s1 $s2 0 -> correct % string equal -length 0xfffffffe $s1 $s2 0 -> wrong, should be 1 ``` For larger values of `-length` , a different error ``` % string equal -length 0x100000000 a b integer value too large to represent ```
- is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "18. Commands M-Z"
- title changed to:
string equal,compare -length option fails for large indices
- type changed to: "Bug"