mirror of
https://github.com/openssl/openssl.git
synced 2024-12-12 19:43:42 +08:00
Fix coverity 1516093 tainted scalar
|uclen| is created from three byte values, so this seems a bit redundant, but if it makes coverity happy Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19519)
This commit is contained in:
parent
943051d0f9
commit
00e38edcfb
@ -1345,7 +1345,8 @@ static int ssl_print_compressed_certificates(BIO *bio, const SSL_CONNECTION *sc,
|
||||
if (!ossl_comp_has_alg(alg))
|
||||
return 0;
|
||||
|
||||
if (uclen == 0 || (ucdata = OPENSSL_malloc(uclen)) == NULL)
|
||||
/* Check against certificate maximum size (coverity) */
|
||||
if (uclen == 0 || uclen > 0xFFFFFF || (ucdata = OPENSSL_malloc(uclen)) == NULL)
|
||||
return 0;
|
||||
|
||||
switch (alg) {
|
||||
|
Loading…
Reference in New Issue
Block a user