Ticket Change Details
Not logged in
Overview

Artifact ID: a0785b419c654efae88aa73fd0668ecd0606e8ca93f9532a058d2fca07b2fd0a
Ticket: ad9361fd20f0b9c5c94d67f3c2b0450005d27250
string end-relative calculation broken for large indices
User & Date: apnadkarni 2023-03-24 18:58:04
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    ```
    % string range [string insert [string repeat a 0x80000000] end-0x7fffffff X] 0 10
    Xaaaaaaaaaa
    ```
    
    I expected "aXaaa..."
    
    Along the same lines,
    
    ```
    % set s [string repeat a 0xffffffff]; string length $s
    4294967295
    % string index $s end-0xfffffffe
    a
    % string range $s end-0xfffffffe  end-0xfffffffe
    ```
    
    `string index` gives correct result but not `string range`.
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "18. Commands M-Z"
  15. title changed to:
    string end-relative calculation broken for large indices
    
  16. type changed to: "Bug"