[openssl/openssl] ba3b33: Replace size_t with int and add the check for the ...

JiashengJiang noreply at github.com
Mon Mar 25 16:53:39 UTC 2024


  Branch: refs/heads/openssl-3.2
  Home:   https://github.com/openssl/openssl
  Commit: ba3b33751d85f43569d51539c7632092cb60a2fd
      https://github.com/openssl/openssl/commit/ba3b33751d85f43569d51539c7632092cb60a2fd
  Author: Jiasheng Jiang <jiasheng at purdue.edu>
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
    M demos/digest/BIO_f_md.c

  Log Message:
  -----------
  Replace size_t with int and add the check for the EVP_MD_get_size()

Replace the type of "digest_size" with int to avoid implicit conversion when it is assigned by EVP_MD_get_size().
Moreover, add the check for the "digest_size".

Fixes: 29ce1066bc ("Update the demos/README file because it is really old. New demos should provide best practice for API use. Add demonstration for computing a SHA3-512 digest - digest/EVP_MD_demo")
Signed-off-by: Jiasheng Jiang <jiasheng at purdue.edu>

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23924)

(cherry picked from commit 87e747000fef07c9ec43877bc5e9f2ca34f76a3b)



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