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: Closed Last Modified: 2026-11-21 09:18:22
Resolution: Duplicate Closed By: serhiy.storchaka
    Closed on: 2026-11-21 09:18:22
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: serhiy.storchaka added on 2026-11-21 09:18:22:

Duplicate of [2680202fff]: the same md5c leak, fixed by [2ba9a8f7a5] (md5c 0.12, Tcllib 1.12).


andreas_kupries added on 2009-08-31 01:02:52:
critcl code of md5 by Pat Thoyts, AFAIK.
Redirecting the bug.