mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] md4sum not 64-bit clean


From: Falk Hueffner
Subject: [Mldonkey-bugs] md4sum not 64-bit clean
Date: 18 May 2002 19:03:45 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (anise)

Hi,

mldonkey doesn't work properly on Alpha Linux (downloads past 100%,
verify discards all chunks etc.). I think this might be due to md4
being buggy:

address@hidden:/data/src/mldonkey/lib% cc -o md4sum md4sum.c md4.c 
address@hidden:/data/src/mldonkey/lib% touch empty  
address@hidden:/data/src/mldonkey/lib% ./md4sum empty 
6214022837971182041113588581197414549108

instead of

49214207224209106233491836089215224192137192

This patch should fix it:

--- md4.h~      Sat May 18 18:42:06 2002
+++ md4.h       Sat May 18 18:47:56 2002
@@ -41,7 +41,7 @@
 typedef unsigned short int UINT2;
 
 /* UINT4 defines a four byte word */
-typedef unsigned long int UINT4;
+typedef unsigned int UINT4;
 
 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
    If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it

I will try to rebuild mldonkey with this patch later...

-- 
        Falk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]