Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digest.file on large files #3219

Closed
vicuna opened this issue Feb 25, 2002 · 1 comment
Closed

Digest.file on large files #3219

vicuna opened this issue Feb 25, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 25, 2002

Original bug ID: 924
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

On 32 bit platforms, there is an overflow in Digest.file with files
larger than 1073741823 bytes. So, in this case, this function will
not return a digest of the whole files, but only of the beginning of
the files.

Moreover, there does not seem to be any easy way to find out whether a
file is larger than 1073741823 bytes. (For instance, Unix.stat
silently overflows.)

-- Jérôme

@vicuna
Copy link
Author

vicuna commented Feb 25, 2002

Comment author: administrator

On 32 bit platforms, there is an overflow in Digest.file with files
larger than 1073741823 bytes. So, in this case, this function will
not return a digest of the whole files, but only of the beginning of
the files.

Fixed in the CVS version (3.04+7).

Moreover, there does not seem to be any easy way to find out whether a
file is larger than 1073741823 bytes. (For instance, Unix.stat
silently overflows.)

This will be fixed sometime soon.

-- Damien

@vicuna vicuna closed this as completed Feb 27, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant