Revert "Paranoid integer overflow check in my_mmap"
authorAustin Seipp <aseipp@pobox.com>
Thu, 29 Aug 2013 22:30:14 +0000 (17:30 -0500)
committerAustin Seipp <aseipp@pobox.com>
Thu, 29 Aug 2013 22:30:14 +0000 (17:30 -0500)
This reverts commit 1ce65edbff90fc8103062a1f94258ecc0c682309.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
rts/posix/OSMem.c

index cbc76f8..000ad63 100644 (file)
@@ -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);