[openssl/openssl] 0da1e3: test/ssl_old_test.c: Add check for OPENSSL_malloc

pauli noreply at reply.github.openssl.org
Thu Jun 16 05:19:06 UTC 2022

  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 0da1e36d2026861b445c743b62c854e8cc2171ab
  Author: Jiasheng Jiang <jiasheng at iscas.ac.cn>
  Date:   2022-06-16 (Thu, 16 Jun 2022)

  Changed paths:
    M test/ssl_old_test.c

  Log Message:
  test/ssl_old_test.c: Add check for OPENSSL_malloc

As the potential failure of the OPENSSL_malloc(),
it should be better to add the check 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/18555)

(cherry picked from commit b2feb9f0e394da6570346598837f1b01eb58c028)

More information about the openssl-commits mailing list