mldonkey-users
[Top][All Lists]
Advanced

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

Re: [Mldonkey-users] >2GB Bug again?


From: Fortin Denis
Subject: Re: [Mldonkey-users] >2GB Bug again?
Date: Sat, 15 Nov 2003 00:39:16 +0100

> but this gives me a completely different hash!
> > Your system supports 1024 file descriptors
> > Partial 298
> > Length 126976
> > Start 2898944000
> > End 2899070976
> > Hash 499457092214A755B9148FA7BB8AAB35
> 
> and because mldonkey uses the same function to hash, nobody can
> download anything >2GB! And even worse: all shared files >2GB will be
> corrupted too!
> Correct me if im wrong but i think the Md4.digest_subfile - function
> is broken...so it must be an ocaml-bug? Or a compilation problem?
> If its so we should at least disable sharing files >2gb to prevent
> uploading corrupted data. And a little info to all mldonkey-users that
> they got no chance to download a >2gb file would be nice....
Can you modify this in your small test program : 
in file src/utils/lib/stubs_c.c
in function value md4_unsafe64_fd (value digest_v, value fd_v, value pos_v, 
value len_v)
(line ~445)

  OS_FD fd = Fd_val(fd_v);
  long pos = Int64_val(pos_v);
to 
  unsigned long pos = Int64_val(pos_v); 

Don't know if this help ( but 
2898944000 is 1010 1100 1100 1010 0110 0000 0000 0000)

Denis





reply via email to

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