Tcl Library Source Code

View Ticket
Login
Ticket UUID: 2847341
Title: leak in md5 (critcl)
Type: Bug Version: None
Submitter: msofer Created on: 2009-08-30 16:46:57
Subsystem: md5 Assigned To: patthoyts
Priority: 8 Severity:
Status: Open Last Modified: 2009-08-31 01:02:58
Resolution: None Closed By:
    Closed on:
Description:
I confirmed the leak reported by echm [http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/a873bbc1ee78d776/b5ca31cdab5af4d6?lnk=gst&q=md5#b5ca31cdab5af4d6]

The following script consumes ever increasing amounts of memory:

% package require md5
2.0.7
% parray md5::accel
md5::accel(critcl)   = 1
md5::accel(cryptkit) = 0
md5::accel(trf)      = 0
% while 1 {md5::md5 testdata}

% info patch
8.5.7
% parray tcl_platform
tcl_platform(byteOrder)   = littleEndian
tcl_platform(machine)     = x86_64
tcl_platform(os)          = Linux
tcl_platform(osVersion)   = 2.6.24-24-generic
tcl_platform(platform)    = unix
tcl_platform(pointerSize) = 8
tcl_platform(threaded)    = 1
tcl_platform(wordSize)    = 8
User Comments: andreas_kupries added on 2009-08-31 01:02:52:
critcl code of md5 by Pat Thoyts, AFAIK.
Redirecting the bug.