]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add test for EVP_KEYMGMT leak in evp_pkey_signature_init() error paths
authorZijie Zhao <zijie4@illinois.edu>
Fri, 16 Jan 2026 23:41:46 +0000 (17:41 -0600)
committerTomas Mraz <tomas@openssl.org>
Fri, 13 Feb 2026 14:42:25 +0000 (15:42 +0100)
commit4eb8a222c9ecac52556060c645c3b7eb3178968d
tree9c5663b3559459ef157562945ab1eccb05495e65
parente133f84ee9fffb15572e734791f0a139b25647a2
Add test for EVP_KEYMGMT leak in evp_pkey_signature_init() error paths

Verify that calling EVP_PKEY_sign_init_ex2() with a mismatched
key/signature algorithm (RSA key with ECDSA signature) does not leak
EVP_KEYMGMT references. The test repeats the operation 100 times so
that ASAN can detect accumulating leaks.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Fri Feb 13 14:42:40 2026
(Merged from https://github.com/openssl/openssl/pull/29810)
test/evp_extra_test.c