]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix potential NULL pointer dereference
authorJuergen Christ <jchrist@linux.ibm.com>
Mon, 16 Jan 2023 10:37:15 +0000 (11:37 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 17 Jan 2023 16:37:55 +0000 (17:37 +0100)
commit235ef96049dbe337a3c3c5d419dacbb5a81df1b3
tree9167f1957c314e373ddbc0b1a3e4d6b80449a8e1
parented77c14d91ec008d4d78d7293f37bd4aa60071f0
Fix potential NULL pointer dereference

In EC key generation, if allocation of struct ec_gen_ctx fails, values
provided by parameters are copied into the context at represented by a NULL
pointer.  To fix this, prevent copy if allocation fails.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20055)
providers/implementations/keymgmt/ec_kmgmt.c