Ticket UUID: | 27ef2056e8a87e82a43f94796e68558da85abcf3 | |||
Title: | [string repeat] overflow fail | |||
Type: | Bug | Version: | 8.5+ | |
Submitter: | dgp | Created on: | 2013-12-12 19:58:33 | |
Subsystem: | 18. Commands M-Z | Assigned To: | dgp | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Closed | Last Modified: | 2013-12-12 20:53:18 | |
Resolution: | Duplicate | Closed By: | dgp | |
Closed on: | 2013-12-12 20:53:18 | |||
Description: |
% string length [string repeat a [expr 1<<31]] 0 [string repeat] implementation does have overflow checking code, but it must be failing in at least this edge case. | |||
User Comments: |
dgp added on 2013-12-12 20:53:18:
This is an exact Dup of 2561746. See that ticket for an explanation why this has been considered "not a bug". If we wish to reconsider that judgment, let's re-open it there. dgp added on 2013-12-12 20:25:05: This is a Dup / re-emergence of Tcl Bug 2561746/ WTF? dgp added on 2013-12-12 20:16:32: This is a variation on % string length [string repeat a -5] 0 Have to consider whether negative argument for "count" argument of [string repeat] ought to continue to produce the empty string, or ought to be raising an error. |