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

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


  Branch: refs/heads/openssl-3.2
  Home:   https://github.com/openssl/openssl
  Commit: dd851c0ea09c6b0b65cacda274b4655023868c38
      https://github.com/openssl/openssl/commit/dd851c0ea09c6b0b65cacda274b4655023868c38
  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)

(cherry picked from commit 806bbafe2df5b699feac6ef26e50c14e701950cf)




More information about the openssl-commits mailing list