Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1b80808862cb16724b39756023ba70b19abed505
Ticket: dd14ad78248c6b4930fad6de2995cb86cab926e8
String is integer/wide do not seem to check the correct ranges
User & Date: apnadkarni on 2015-11-09 10:14:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    % string is integer 2147483649
    1
    % expr {int(2147483649)}
    -2147483647
    
    % string is wide -9223372036854775809
    1
    % expr {wide(-9223372036854775809)}
    9223372036854775807
    
    Both those numbers do not fit in the respective 32/64 bit widths. Note that [string is] is supposed to check for range. For example,
    
    % string is integer 21474836490
    0
    
    /Ashok
    
  5. is_private changed to: "0"
  6. login: "apnadkarni"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Minor"
  10. status changed to: "Open"
  11. submitter changed to: "apnadkarni"
  12. subsystem changed to: "11. Conversions From String"
  13. title changed to:
    String is integer/wide do not seem to check the correct ranges
    
  14. type changed to: "Bug"