diff options
author | Pauli <paul.dale@oracle.com> | 2019-02-13 07:11:16 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-02-13 10:01:49 +0100 |
commit | e0ae0585bee898184cbbe8144d2fa8ce25e8ca72 (patch) | |
tree | aad954b7484e4b105e1338bcc446a23d476db95f | |
parent | Fix null pointer dereference in cms_RecipientInfo_kari_init (diff) | |
download | openssl-e0ae0585bee898184cbbe8144d2fa8ce25e8ca72.tar.xz openssl-e0ae0585bee898184cbbe8144d2fa8ce25e8ca72.zip |
Sparse array limit testing: reduce the range limit for the number of bits
in a sparse array pointer block.
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8221)
-rw-r--r-- | crypto/sparse_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |