Skip to content

Commit

Permalink
Coverity 1508532: out of bounds access
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from #19033)
  • Loading branch information
paulidale committed Aug 23, 2022
1 parent 52f6169 commit eb7a5cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crypto/dh/dh_pmeth.c
Expand Up @@ -432,7 +432,8 @@ static int pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key,
else if (dctx->kdf_type == EVP_PKEY_DH_KDF_X9_42) {

unsigned char *Z = NULL;
size_t Zlen = 0;
int Zlen = 0;

if (!dctx->kdf_outlen || !dctx->kdf_oid)
return 0;
if (key == NULL) {
Expand Down

0 comments on commit eb7a5cc

Please sign in to comment.