]> git.ipfire.org Git - thirdparty/openssl.git/commit
apps/lib/log.c: Add check for BIO_new()
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Fri, 27 Jun 2025 18:13:41 +0000 (18:13 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 1 Dec 2025 10:30:00 +0000 (11:30 +0100)
commitae4d37e3fb0fc772c3eb22878c0206345dec8286
tree88af530b14daced9ef06eb27a3bd6a92be32ab4e
parent20991f30006d20d2dac270077de7b20e78300b82
apps/lib/log.c: Add check for BIO_new()

Add check for the return value of BIO_new() to avoid potential NULL pointer dereference.

Fixes: 8a2ec00d7f ("apps/lib/http_server.{c,h}: clean up logging and move it to log.{c,h}")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27918)
apps/lib/log.c