[openssl/openssl] f5beeb: test/ssl_old_test.c: Add check for OPENSSL_zalloc

Todd Short noreply at reply.github.openssl.org
Wed Jun 15 15:24:19 UTC 2022

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

  Changed paths:
    M test/ssl_old_test.c

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

As the potential failure of the OPENSSL_zalloc(),
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 Yang <kaishen.yy at antfin.com>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/18552)

(cherry picked from commit 4f4942a133bd57c4940fb1bc6ed7c8b67da4d8f0)

More information about the openssl-commits mailing list