[openssl/openssl] 806bba: Check appropriate OSSL_PARAM_get_* functions for NULL

Neil Horman noreply at github.com
Tue Jan 9 15:58:52 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 806bbafe2df5b699feac6ef26e50c14e701950cf
      https://github.com/openssl/openssl/commit/806bbafe2df5b699feac6ef26e50c14e701950cf
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-01-09 (Tue, 09 Jan 2024)

  Changed paths:
    M crypto/params.c
    M test/params_api_test.c

  Log Message:
  -----------
  Check appropriate OSSL_PARAM_get_* functions for NULL

The base type OSSL_PARAM getters will NULL deref if they are initalized
as null.  Add NULL checks for those parameters that have no expectation
of returning null (int32/64/uint32/64/BN).  Other types can be left as
allowing NULL, as a NULL setting may be meaningful (string, utf8str,
octet string, etc).

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23083)




More information about the openssl-commits mailing list