[openssl/openssl] e16396: crypto/x509/by_store.c: Add check for OPENSSL_strdup

pauli noreply at reply.github.openssl.org
Wed Jun 22 06:55:31 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: e163969d3580e5b797fcebde0d3000302912ef18
      https://github.openssl.org/openssl/openssl/commit/e163969d3580e5b797fcebde0d3000302912ef18
  Author: Jiasheng Jiang <jiasheng at iscas.ac.cn>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    M crypto/x509/by_store.c

  Log Message:
  -----------
  crypto/x509/by_store.c: Add check for OPENSSL_strdup

As the potential failure of the OPENSSL_strdup(),
it should be better to check the return value and
return error if fails.

Signed-off-by: Jiasheng Jiang <jiasheng at iscas.ac.cn>

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18593)




More information about the openssl-commits mailing list