]> git.ipfire.org Git - thirdparty/openssl.git/commit
If you call X509_add_cert with cert == NULL and the X509_ADD_FLAG_UP_REF
authorotherddn1978 <other_ddn@mail.ru>
Thu, 26 Dec 2024 10:26:34 +0000 (13:26 +0300)
committerTomas Mraz <tomas@openssl.org>
Mon, 20 Jan 2025 07:44:41 +0000 (08:44 +0100)
commit842128239d9871efef56eeea48b26afc3c7a55c3
tree0d2125a000c24ee366320c86faad2f4d31ba39a8
parent5a673cc9e73fc896164889cd55a76be00e69e522
If you call X509_add_cert with cert == NULL and the X509_ADD_FLAG_UP_REF
flag, it will сrash to X509_up_ref.  Passing NULL here is not valid,
return 0 if cert == NULL.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26267)

(cherry picked from commit 3c7db9e0fdf4706d91cedf5fca70b609bdc1677e)
crypto/x509/x509_cmp.c
doc/man3/X509_add_cert.pod