openssl/providers
Juergen Christ 60c19d0d61 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)

(cherry picked from commit 235ef96049)
2023-01-17 17:38:42 +01:00
..
common providers/common/der/oids_to_c.pm: Remove use of Data::Dumper 2022-11-02 11:19:33 +01:00
fips Use RSA CRT parameters in FIPS self tests. 2022-10-27 11:48:13 +02:00
implementations Fix potential NULL pointer dereference 2023-01-17 17:38:42 +01:00
baseprov.c Update copyright year 2021-04-08 13:04:41 +01:00
build.info Add VERSIONINFO resource to legacy provider if it is not builtin 2022-06-02 11:22:01 -04:00
decoders.inc prov: tag SM2 encoders and decoders as non-FIPS 2021-06-16 14:42:38 +01:00
defltprov.c Update copyright year 2022-11-01 14:55:40 +01:00
encoders.inc ENCODER PROV: Add encoders with EncryptedPrivateKeyInfo output 2021-09-05 21:42:54 +02:00
fips-sources.checksums make update 2022-11-01 15:14:19 +01:00
fips.checksum make update 2022-11-01 15:14:19 +01:00
fips.module.sources Update fips source checksums to drop the unwanted headers 2022-06-24 08:25:26 +02:00
legacyprov.c Update copyright year 2022-06-21 14:03:39 +01:00
nullprov.c null prov: fix gettable param array type. 2020-10-16 10:33:38 +10:00
prov_running.c keygen: add FIPS error state management to conditional self tests 2020-09-12 16:46:51 +10:00
stores.inc prov: prefix all OSSL_DISPATCH tables names with ossl_ 2020-09-29 16:31:46 +10:00