Browse Source

* fixed calculation of md4/md5 for files > 512MB on 32 bit systems
(based on patch from Sergei Gorelkin, mantis #9903)

git-svn-id: trunk@9724 -

Jonas Maebe 17 years ago
parent
commit
3d39cb8d1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/hash/src/md5.pp

+ 1 - 1
packages/hash/src/md5.pp

@@ -55,7 +55,7 @@ type
     Version : TMDVersion;
     Version : TMDVersion;
     Align   : PtrUInt;
     Align   : PtrUInt;
     State   : array[0..3] of Cardinal;
     State   : array[0..3] of Cardinal;
-    BufCnt  : PtrUInt;
+    BufCnt  : QWord;
     Buffer  : array[0..63] of Byte;
     Buffer  : array[0..63] of Byte;
     case Integer of
     case Integer of
       0: (Length   : PtrUInt);
       0: (Length   : PtrUInt);