diff options
author | Todd Short <tshort@akamai.com> | 2017-05-12 16:46:39 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-05-20 20:54:04 -0400 |
commit | c8e89d58a5d44b9dd657d6d13a5a10d1d4d30733 (patch) | |
tree | d7939a71f01523ca18ab95c31938097c99d03be9 /crypto | |
parent | 2117a737f379166856723546eba569e8f1050891 (diff) |
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')
-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); |