secmem: ignore small minsize arguments to CRYPTO_secure_malloc_init().
authorPauli <paul.dale@oracle.com>
Sat, 22 Feb 2020 08:39:28 +0000 (18:39 +1000)
committerPauli <paul.dale@oracle.com>
Wed, 26 Feb 2020 05:38:37 +0000 (15:38 +1000)
commita998ec0e6e12e03c0d4f922a0fe288d5e054985e
tree47167c6fd2906a7bd8fdfd14e73d45f68c9f7d02
parent50e0402c220ab7abd375802ea4264ff3ee9fc339
secmem: ignore small minsize arguments to CRYPTO_secure_malloc_init().

If the user specifies a minimum allocation size that is smaller than
the free list structure (or zero), calculate the minimum possible size rather
than failing.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11149)
crypto/mem_sec.c