[openssl/openssl] e97f46: macs/kmac_prov.c: Add checks for the EVP_MD_get_si...

JiashengJiang noreply at github.com
Mon Apr 1 19:30:38 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: e97f468589e807e7f4722b150458edd53f374cd0
      https://github.com/openssl/openssl/commit/e97f468589e807e7f4722b150458edd53f374cd0
  Author: Jiasheng Jiang <jiasheng at purdue.edu>
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
    M providers/implementations/macs/kmac_prov.c

  Log Message:
  -----------
  macs/kmac_prov.c: Add checks for the EVP_MD_get_size()

Add checks for the EVP_MD_get_size() to avoid integer overflow and then explicitly cast from int to size_t.

Fixes: 6e624a6453 ("KMAC implementation using EVP_MAC")
Signed-off-by: Jiasheng Jiang <jiasheng at purdue.edu>

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <ppzgs1 at gmail.com>
Reviewed-by: Neil Horman <nhorman at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23946)



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