[openssl/openssl] f13dda: Replace unsigned with int

JiashengJiang noreply at github.com
Mon Mar 25 16:48:43 UTC 2024


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

  Changed paths:
    M demos/digest/EVP_MD_demo.c
    M demos/digest/EVP_MD_stdin.c

  Log Message:
  -----------
  Replace unsigned with int

Replace the type of "digest_length" with int to avoid implicit conversion when it is assigned by EVP_MD_get_size().
Otherwise, it may pass the following check and cause the integer overflow error when EVP_MD_get_size() returns negative numbers.
Signed-off-by: Jiasheng Jiang <jiasheng at purdue.edu>

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23922)



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