diff options
author | Todd Short <tshort@akamai.com> | 2017-05-12 22:46:39 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-05-21 02:54:04 +0200 |
commit | c8e89d58a5d44b9dd657d6d13a5a10d1d4d30733 (patch) | |
tree | d7939a71f01523ca18ab95c31938097c99d03be9 /crypto/mem_sec.c | |
parent | move comments to same line as fields (diff) | |
download | openssl-c8e89d58a5d44b9dd657d6d13a5a10d1d4d30733.tar.xz openssl-c8e89d58a5d44b9dd657d6d13a5a10d1d4d30733.zip |
Tweak sec_mem tests
Remove assertion when mmap() fails.
Only run the 1<<31 limit test on Linux
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3455)
Diffstat (limited to 'crypto/mem_sec.c')
-rw-r--r-- | crypto/mem_sec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c index 774b696057..6fc1aca1e0 100644 --- a/crypto/mem_sec.c +++ b/crypto/mem_sec.c @@ -425,7 +425,6 @@ static int sh_init(size_t size, int minsize) close(fd); } } - OPENSSL_assert(sh.map_result != MAP_FAILED); if (sh.map_result == MAP_FAILED) goto err; sh.arena = (char *)(sh.map_result + pgsize); |