Tk Library Source Code

View Ticket
Login
Ticket UUID: 1187156
Title: md5::md5 -hex $data fails for some data
Type: Bug Version: None
Submitter: juliannoble Created on: 2005-04-21 07:03:54
Subsystem: md5 Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-04-21 22:09:51
Resolution: Duplicate Closed By: juliannoble
    Closed on: 2005-04-21 08:20:18
Description:
md5::md5 -hex $data can fail with:
::hex: wrong # args, all options require an argument

protecting the arg with: md5::md5 -hex -- $data does not 
help.

%set errorInfo
::hex: wrong # args, all options require an argument
    while executing
"Hex $r"
    (procedure "md5::md5" line 47)
    invoked from within
"md5::md5 -hex -- $data"
%

My quick fix was to modify md5x.tcl so that the 2 
occurrences of:

set r [Hex $r]

are replaced with:

set r [Hex -- $r]

I haven't thought through exactly what's going on and 
whether or not it's required in both instances though.

Unfortunately I only know of one string for which this 
occurs, and that happens to be a chunk of xml which 
includes private information.
User Comments: juliannoble added on 2005-04-21 15:20:18:
Logged In: YES 
user_id=598324

My bad. This has already been fixed. Sorry.