[openssl/openssl] 48e3cf: ssl/statem: Replace size_t with int and add the ch...

JiashengJiang noreply at github.com
Fri Apr 26 07:32:41 UTC 2024


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

  Changed paths:
    M ssl/statem/extensions_clnt.c
    M ssl/statem/extensions_srvr.c

  Log Message:
  -----------
  ssl/statem: Replace size_t with int and add the checks

Replace the type of variables with int to avoid implicit conversion when it is assigned by EVP_MD_get_size().
Moreover, add the checks to avoid integer overflow.

Fixes: 6594189 ("Merge early_data_info extension into early_data")
Fixes: 9368f86 ("Add TLSv1.3 client side external PSK support")
Fixes: 1053a6e ("Implement Server side of PSK extension parsing")
Signed-off-by: Jiasheng Jiang <jiasheng at purdue.edu>

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/23937)



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