]> git.ipfire.org Git - thirdparty/openssl.git/commit
Avoid NULL dereference with PKCS7_OP_SET_DETACHED_SIGNATURE
authorTomas Mraz <tomas@openssl.org>
Thu, 28 Nov 2024 09:10:28 +0000 (10:10 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 2 Dec 2024 08:44:58 +0000 (09:44 +0100)
commitf2348f1f844a54c7a95c32e2354cd29f0860c803
treea8453f417ebb74dc0eb10ee5122df76b99208ce5
parent4a4505cc645d2e862e368e2823e921a564112ca2
Avoid NULL dereference with PKCS7_OP_SET_DETACHED_SIGNATURE

We would dereference p7->d.sign pointer which can be NULL.

Reported by Han Zheng.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26078)
crypto/pkcs7/pk7_lib.c