Ticket Change Details
Not logged in
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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. 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
    ```
    
  5. is_private changed to: "0"
  6. login: "apnadkarni"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "18. Commands M-Z"
  14. title changed to:
    string equal,compare -length option fails for large indices
    
  15. type changed to: "Bug"