Tcl Library Source Code

View Ticket
Login
Ticket UUID: 6abf74eec858c6005aaf87ff3989adde85474230
Title: md5crypt failure
Type: Bug Version: trunk
Submitter: anonymous Created on: 2024-03-25 22:52:34
Subsystem: md5crypt Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2024-03-25 22:52:34
Resolution: None Closed By: nobody
    Closed on:
Description:
---- md5crypt-5.0 start


==== md5crypt-5.0 md5crypt unicode hash, salt "￾\0" FAILED
==== Contents of test case:

    ::md5crypt::md5crypt fakepassword $salt

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expected byte sequence but character 12 was '￾\0fakepassword€\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0à\0\0\0\0\0\0\0' (U+00FFFE)
    while executing
"binary scan $msg i* blocks"
    (procedure "MD5Hash" line 8)
    invoked from within
"MD5Hash $token [string range $state(i) $n [incr n 64]]"
    (procedure "MD5Final" line 48)
    invoked from within
"MD5Final $ctx2"
    (procedure "::md5crypt::md5crypt_tcl" line 22)
    invoked from within
"::md5crypt::md5crypt fakepassword $salt"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $script"
---- errorCode: TCL VALUE BYTES
==== md5crypt-5.0 FAILED