[openssl/openssl] 6408e7: test/evp_test.c: Add check for OPENSSL_strdup

pauli noreply at reply.github.openssl.org
Wed Jun 22 07:01:54 UTC 2022


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

  Changed paths:
    M test/evp_test.c

  Log Message:
  -----------
  test/evp_test.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/18592)

(cherry picked from commit 5203a8dfdc209f05c7dbd9c1e5208743fcaa6752)




More information about the openssl-commits mailing list