Artifacts Associated With Ticket 1267380
Ticket change [56e9c0dfea] (rid 94409) by dgp on 2005-08-23 19:17:24:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% set x [string repeat a 65536]; concat % set y [lrepeat 65536 $x]; concat % string length $y Segmentation fault The string rep of $y would need a buffer of 4295032831 bytes, but that exceeds INT_MAX. When the scanner (over-)estimates the buffer size, it tries to count up the need for 4295163905 bytes, but the calculation overflows, wraps around and it concludes the need for only 196609 bytes. This gets allocated easily, and we happily start writing to this way too short buffer until we march off into segfaulting . Would be better for the scanner to detect the overflow (any negative length should be the indicator) and Tcl_Panic, I think.
- foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "14. List Object"
- title initialized to: "UpdateStringOfList: overflow detection"
- type initialized to: "Bug"
Ticket change [a69bc6f699] (rid 98634) by dkf on 2005-08-26 04:49:45:
- assignee changed to: "dkf"
- closedate changed to: "2005-08-25T21:49:45"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Fixed in HEAD; does this need backporting?
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "dkf"
Ticket change [00cf56cdfc] (rid 119375) by hobbs on 2005-08-26 04:56:33:
- icomment:
Logged In: YES user_id=72656 as a possible buffer overflow, yes please.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [50a3ffc439] (rid 126010) by dkf on 2005-08-26 05:28:40:
- closedate changed to: "2005-08-25T22:28:40"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 done
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dkf"