|
2004-02-25
| ||
| 21:58 | • Closed ticket [888777ffff]: Potential mem leak in TcpGetOptionProc if host name ... artifact: 7330a7cdc3 user: dkf | |
|
2004-02-02
| ||
| 06:41 | • Ticket [888777ffff]: 4 changes artifact: 7e423a82de user: stwo | |
| 06:41 | • Add attachment patch-unix_tclUnixChan_c-DStringFree to ticket [888777ff... artifact: 3f30bd918b user: stwo | |
|
2004-02-01
| ||
| 23:41 | • New ticket [888777ffff] Potential mem leak in TcpGetOptionProc if host name too ... artifact: 177c0f6511 user: stwo | |
Potential mem leak in TcpGetOptionProc if host name too long
Closed / Fixed888777ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-02-01 23:41:26
In unix/tclUnixChan.c, TcpGetOptionProc,
options -peername and -sockname.
if the size of the hostname returned by the system
causes Tcl to allocate memory for Tcl_DString 'ds',
that memory will never be freed.
I have tested this with:
while {1} {fconfigure $sock -peername}
hostname <= 195 chars - ok
hostname > 195 chars - memory leak
Patch included for Tcl-8.4.5
Stu
stwoplain2004-02-02 06:41:26
File Added - 75432: patch-unix_tclUnixChan_c-DStringFree
dkf Closed ticket [888777ffff].
[History diff]2004-02-25 21:58:53
Log in (anonymous is fine) to add a comment.
Attachments:
- patch-unix_tclUnixChan_c-DStringFree [download] added by stwo on 2004-02-02 06:41:26. [details]