]> 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:08 +0000 (08:44 +0100)
commit16fac03de5678addc82bd224e2bc157fc1767254
tree19592154229461b9b63d111cb834a3a7cd9786ee
parent43489d16498ff3a941680d79de65c4cdeacdbfc1
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