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

Possible overflow while mapping large files on 32 bit systems #79

Open
faulesocke opened this issue Oct 1, 2018 · 1 comment
Open

Comments

@faulesocke
Copy link

Ok(len as usize)

When mapping a file > 4GiB on a 32bit system, this line will produce an integer overflow resulting in a more-or-less "random" mapping length. The correct behaviour here would be to return an error if the requested mapping is larger than the address space.

@fogti
Copy link

fogti commented Jan 4, 2019

possible related to #69.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants