[openssl/openssl] 60c19d: Fix potential NULL pointer dereference
Juergen Christ
noreply at github.com
Tue Jan 17 16:40:23 UTC 2023
Branch: refs/heads/openssl-3.0
Home: https://github.com/openssl/openssl
Commit: 60c19d0d61d12441db3c00f3d4009fcb5950d8b9
https://github.com/openssl/openssl/commit/60c19d0d61d12441db3c00f3d4009fcb5950d8b9
Author: Juergen Christ <jchrist at linux.ibm.com>
Date: 2023-01-17 (Tue, 17 Jan 2023)
Changed paths:
M providers/implementations/keymgmt/ec_kmgmt.c
Log Message:
-----------
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 at linux.ibm.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20055)
(cherry picked from commit 235ef96049dbe337a3c3c5d419dacbb5a81df1b3)
More information about the openssl-commits
mailing list