Artifacts Associated With Ticket 2561746
Ticket change [e089979cac] (rid 115216) by dgp on 2009-02-03 19:18:48:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% info patch 8.5.6 % set a [string repeat a 0x80000000]; concat % string length $a 0
- foundin initialized to: "obsolete: 8.5.6"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "overflow trouble in [string repeat]"
- type initialized to: "Bug"
Ticket change [2577494257] (rid 88178) by dgp on 2009-02-04 02:20:41:
- icomment:
Related: % set a [string repeat a 0x7fffffff]; concat string size overflow, out of memory allocating -2147483648 bytes Here it's just the formatting of the error message that is the problem.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1e469ccf3d] (rid 90942) by dgp on 2009-02-04 02:32:12:
- icomment:
On another system with more memory: % set a [string repeat a 0x7fffffff]; concat Segmentation fault
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dgp"
- icomment:
Ticket change [8c42a171fa] (rid 127719) by dgp on 2009-02-04 02:43:45:
- icomment:
Fix for 714106 is apparently incomplete.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [dbec088a0f] (rid 108047) by dgp on 2009-02-04 23:20:33:
- icomment:
the existing overflow protections are only effective for repeated substrings of length > 1.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c0b701e7ae] (rid 102463) by dgp on 2009-02-05 01:14:12:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [9aab5ce4bc] (rid 110990) by dgp on 2009-02-05 01:16:09:
- icomment:
fix committed to HEAD. backports still needed.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8ea635976c] (rid 120149) by dgp on 2009-02-05 02:04:44:
- assignee changed to: "dgp"
- closedate changed to: "2009-02-04T19:04:44"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 Backported for 8.5.7. Not buggy in 8.4. branch.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"