Artifacts Associated With Ticket 1399062
Ticket change [e3d822360a] (rid 87867) by coldstore on 2006-01-07 07:20:06:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
gets can be fed an arbitrarily long line. This can cause a segv. Here are some patches relative to tcl in September to fix it. If there's any interest or intent to package, I'll have a look at it under the latest tcl8.5
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "coldstore"
- subsystem initialized to: "None"
- title initialized to: "gets with limited line length"
- type initialized to: "RFE"
Add attachment "tclIO.diff" [8009228be6] (rid 97664) by coldstore on 2006-01-07 14:20:08.
Ticket change [e4f97f5c76] (rid 88049) by coldstore on 2006-01-07 14:20:10:
- icomment:
File Added - 162470: tclIO.diff
- login: "coldstore"
- mimetype: "text/plain"
- username: "coldstore"
- icomment:
Add attachment "tclIOCmd.diff" [235cbcd9cd] (rid 130914) by coldstore on 2006-01-07 14:21:59.
Ticket change [7800bb39c8] (rid 89876) by coldstore on 2006-01-07 14:22:00:
- icomment:
File Added - 162471: tclIOCmd.diff
- login: "coldstore"
- mimetype: "text/plain"
- username: "coldstore"
- icomment:
Ticket change [4c0d0781b2] (rid 126812) by coldstore on 2006-01-07 14:23:45:
- icomment:
Logged In: YES user_id=19214 Here is the release haiku for this RFI: petals falling into pond, gets with maxchar arg, the carp sleeps all winter day
- login: "coldstore"
- mimetype: "text/plain"
- username: "coldstore"
- icomment:
Ticket change [d17ef0a3ad] (rid 113360) by dkf on 2006-01-09 16:02:30:
- assignee changed to: "andreas_kupries"
- subsystem changed to: "24. Channel Commands"
Ticket change [dad36c987f] (rid 107858) by nobody on 2006-01-13 22:09:22:
- icomment:
Logged In: NO Are you sure it SEGV'd? Or was it a panic due to not being able to malloc/realloc enough memory? Also from an interface point of view it might be better to put the limit on the filehandle and not the call to gets. ie. make it fconfigure'able, with Tcl providing a default of something suitably big. Not sure what the best course for it to do if it hit the limit. Either (a) return a partial line, or (b) throw an error. I think (b) is preferable as (a) allows silent bugs to creep in and a catch-able exception is preferable to a panic! Although, how often do you see multi million long character lines :-)
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment: