]> 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:50 +0000 (08:44 +0100)
commit2bd0e81e507e2c9ae0c3a7a5b42d48e24ad614d4
tree8507fe75bea26633db99ca478d26ed39842dfb9b
parentc4429159f980677a7ab41f826d18804f8985a4f2
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