]> git.ipfire.org Git - thirdparty/openssl.git/commit
apps/lib/apps.c: Add check for BIO_new()
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Thu, 26 Jun 2025 00:01:35 +0000 (00:01 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 1 Jul 2025 17:31:54 +0000 (19:31 +0200)
commit2fccd17e8feb91ef9b0cb949eb3fc04a384148ca
treed8607648b848e45e9a8efa5f42efd74290bb5feb
parentbdb769841a32199cb0d0e6c03b09d4b515b49c70
apps/lib/apps.c: Add check for BIO_new()

Add checks for the return value of BIO_new() to guarantee successful
allocation, consistent with other usages.

Fixes: a412b89 ("dup_bio_* and bio_open_* are utility functions and belong in apps.c")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27894)
apps/lib/apps.c