diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-01-24 11:17:55 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-02-14 10:16:36 -0500 |
commit | 97497baeb70c443030e9e0c59abf4930679b4f82 (patch) | |
tree | f035b6562221523e49733e659a5f45457d55142f /docs/users_guide/compare-flags.py | |
parent | 6060003e4f95101adaef0b2c7f26154c59f2e83a (diff) | |
download | haskell-97497baeb70c443030e9e0c59abf4930679b4f82.tar.gz |
base: Always clamp reads/writes to 2GB in length
Previously we did this only on Darwin due to #17414. However, even on
other platforms >2GB writes are on shaky ground. POSIX explicitly says
that the result is implementation-specified and Linux will write at most
0x7ffff000, even on 64-bit platforms. Moreover, getting the sign
of the syscall result correct is tricky, as demonstrated by the fact
that T17414 currently fails on FreeBSD.
For simplicity we now just uniformly clamp to 0x7ffff000 on all
platforms.
Diffstat (limited to 'docs/users_guide/compare-flags.py')
0 files changed, 0 insertions, 0 deletions