Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #20055) (cherry picked from commit 235ef96)
- Loading branch information