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

std: Clamp max read/write sizes on Unix #38622

Merged
merged 1 commit into from
Dec 30, 2016

Commits on Dec 26, 2016

  1. std: Clamp max read/write sizes on Unix

    Turns out that even though all these functions take a `size_t` they don't
    actually work that well with anything larger than the maximum value of
    `ssize_t`, the return value. Furthermore it looks like OSX rejects any
    read/write requests larger than `INT_MAX - 1`. Handle all these cases by just
    clamping the maximum size of a read/write on Unix to a platform-specific value.
    
    Closes rust-lang#38590
    alexcrichton committed Dec 26, 2016
    Configuration menu
    Copy the full SHA
    917a9af View commit details
    Browse the repository at this point in the history