]> git.ipfire.org Git - thirdparty/openssl.git/commit
Check whether ctx->pctx != NULL
authorotherddn1978 <other_ddn@mail.ru>
Fri, 13 Dec 2024 15:00:09 +0000 (18:00 +0300)
committerTomas Mraz <tomas@openssl.org>
Tue, 17 Dec 2024 13:57:17 +0000 (14:57 +0100)
commitad8b2a9a0a98026bb0d3393ed6a4c5d697af5a18
tree3bdc0a4df497ba9af36e3ca63d895b4bc3eeb078
parent92ab7c5ec63b5d748a80f8f4627d4ac8c87ca5da
Check whether ctx->pctx != NULL

If it is NULL, ctx->pctx->pmeth dereference will cause a crash.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26176)

(cherry picked from commit 82e7a1130a7d10f4e15c19676a680990b5e3f8fe)
crypto/evp/m_sigver.c