diff options
author | Austin Seipp <aseipp@pobox.com> | 2013-08-29 17:30:14 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2013-08-29 17:30:14 -0500 |
commit | d50e7aedcc25db1337063e70fa166fc05055892d (patch) | |
tree | e716dd1e9e96ee6942210015151924bed30cb557 | |
parent | c87c19f55a3ed7f437d738bfbf436afbc3ac0877 (diff) | |
download | haskell-d50e7aedcc25db1337063e70fa166fc05055892d.tar.gz |
Revert "Paranoid integer overflow check in my_mmap"
This reverts commit 1ce65edbff90fc8103062a1f94258ecc0c682309.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
-rw-r--r-- | rts/posix/OSMem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c index cbc76f82d9..000ad63428 100644 --- a/rts/posix/OSMem.c +++ b/rts/posix/OSMem.c @@ -79,9 +79,6 @@ my_mmap (void *addr, W_ size) { void *ret; - if (size > (W_)SIZE_MAX) - barf("my_mmap: impossibly large allocation of %" FMT_Word " bytes; W_ larger than size_t?", size); - #if defined(solaris2_HOST_OS) || defined(irix_HOST_OS) { int fd = open("/dev/zero",O_RDONLY); |