diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-12-29 17:26:21 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-29 17:26:21 -0800 |
| commit | 86239074105e9844cb666bb4086f8bc78127fd7a (patch) | |
| tree | 641c80a90101819bd261f48105043cd8a076a4ac /src/test/incremental/thinlto | |
| parent | 41b601ecdda41e86632dc1497c13a662de133888 (diff) | |
| parent | 917a9affc114b68ef4985511bdee106429bbf2ac (diff) | |
| download | rust-86239074105e9844cb666bb4086f8bc78127fd7a.tar.gz rust-86239074105e9844cb666bb4086f8bc78127fd7a.zip | |
Rollup merge of #38622 - alexcrichton:read-lengths, r=sfackler
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 #38590
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
