[commit: ghc] master: Revert "Paranoid integer overflow check in my_mmap" (d50e7ae)

git at git.haskell.org git at git.haskell.org
Fri Aug 30 00:32:20 CEST 2013


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d50e7aedcc25db1337063e70fa166fc05055892d/ghc

>---------------------------------------------------------------

commit d50e7aedcc25db1337063e70fa166fc05055892d
Author: Austin Seipp <aseipp at pobox.com>
Date:   Thu Aug 29 17:30:14 2013 -0500

    Revert "Paranoid integer overflow check in my_mmap"
    
    This reverts commit 1ce65edbff90fc8103062a1f94258ecc0c682309.
    
    Signed-off-by: Austin Seipp <aseipp at pobox.com>


>---------------------------------------------------------------

d50e7aedcc25db1337063e70fa166fc05055892d
 rts/posix/OSMem.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index cbc76f8..000ad63 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);





More information about the ghc-commits mailing list