Artifacts Associated With Ticket 2801413
Ticket change [276b2b4572] (rid 88511) by dgp on 2009-06-04 22:06:02:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% set x [expr {1<<(2**29)}]; concat % set x [expr {$x<<(2**29)}]; concat % set x [expr {$x<<(2**29)}]; concat % set x [expr {$x<<(2**29)}]; concat % incr x -1; concat % set s [format %#llx $x]; concat Tcl_SetObjLength: negative length requested: -536870912 (integer overflow?) Computing the value of numDigits overflows the int range. - foundin initialized to: "obsolete: 8.5.7"
- 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: "10. Objects"
- title initialized to: "[format %llx] overflow"
- type initialized to: "Bug"
Ticket change [024b60baf8] (rid 119618) by dgp on 2009-06-06 05:04:14:
- icomment:
After applying attached patch: % set max [expr {(1<<(2**31-3)<<(2**31-3)<<(2**31-3)<<(2**31-3))-1}]; concat % set s [format %#llx $max]; concat % string length $s 2147483647 % incr max; concat % set s [format %#llx $max]; concat max size for a Tcl value (2147483647 bytes) exceeded This demos ability of [format] to create a numeric string up to Tcl's limits. A panic when those limits are exceeded is a bit jarring, but that's a separate bug/misfeature. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f99a08cfea] (rid 91734) by dgp on 2009-06-06 05:04:52:
- icomment:
File Added - 329932: 2801413.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [94a40b7dc8] (rid 106029) by dgp on 2009-06-11 04:21:37:
- icomment:
File Deleted - 329932:
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [672424a5b9] (rid 102852) by dgp on 2009-06-11 04:22:37:
- icomment:
File Added - 330526: 2801413.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "2801413.patch" [cedb49deff] (rid 112854) by dgp on 2009-06-11 04:22:37.
Ticket change [65348684b8] (rid 92910) by dgp on 2009-06-11 04:23:23:
- icomment:
Updated patch also converts all [format] panics due to string length overflow into simple Tcl errors.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ef003855cd] (rid 108918) by dgp on 2009-06-11 04:40:21:
- closedate changed to: "2009-06-10T21:40:21"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 patch committed for 8.5.8 and 8.6b2.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"