From: Pauli Date: Wed, 13 Feb 2019 06:11:16 +0000 (+1000) Subject: Sparse array limit testing: reduce the range limit for the number of bits X-Git-Tag: openssl-3.0.0-alpha1~2541 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e0ae0585bee898184cbbe8144d2fa8ce25e8ca72;p=oweals%2Fopenssl.git Sparse array limit testing: reduce the range limit for the number of bits in a sparse array pointer block. Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/8221) --- diff --git a/crypto/sparse_array.c b/crypto/sparse_array.c index 9255f9da3f..8c9efed0eb 100644 --- a/crypto/sparse_array.c +++ b/crypto/sparse_array.c @@ -37,7 +37,7 @@ # else # define OPENSSL_SA_BLOCK_BITS 12 # endif -#elif OPENSSL_SA_BLOCK_BITS < 2 || OPENSSL_SA_BLOCK_BITS > BN_BITS2 +#elif OPENSSL_SA_BLOCK_BITS < 2 || OPENSSL_SA_BLOCK_BITS > (BN_BITS2 - 1) # error OPENSSL_SA_BLOCK_BITS is out of range #endif