Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c0b701e7aea6f3db0d66ac846465f0231075d474
Ticket: 2561746fffffffffffffffffffffffffffffffff
overflow trouble in [string repeat]
User & Date: dgp on 2009-02-05 01:14:12
Changes

  1. icomment:
    
    Note that the original report here
    is *not a bug* but a bit of compatibility.
    The count values from 0x80000000 to 0xffffffff
    are taken as equivalent to the values
    -0x80000000 to -1 because the value is
    fetched with Tcl_GetIntFromObj().
    
    Then, given a negative count value, 
    [string repeat] returns an empty string
    and no error.
    
    The later comments note the real bug,
    some uncaught overflows leading to
    crashes.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"