[openssl/openssl] 15e06b: dsa/dsa_pmeth.c: Add the checks for the EVP_MD_CTX...

JiashengJiang noreply at github.com
Sat Mar 30 19:17:32 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 15e06b12ee9df6347433398cb3f732c4458d4218
      https://github.com/openssl/openssl/commit/15e06b12ee9df6347433398cb3f732c4458d4218
  Author: Jiasheng Jiang <jiasheng at purdue.edu>
  Date:   2024-03-30 (Sat, 30 Mar 2024)

  Changed paths:
    M crypto/dsa/dsa_pmeth.c

  Log Message:
  -----------
  dsa/dsa_pmeth.c: Add the checks for the EVP_MD_CTX_get_size()

Add the checks for the return value of EVP_MD_CTX_get_size() before explicitly cast them to size_t to avoid the integer overflow.

Fixes: 9d04f83410 ("Add DSA digest length checks.")
Signed-off-by: Jiasheng Jiang <jiasheng at purdue.edu>

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
Reviewed-by: Neil Horman <nhorman at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23954)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list