From: Tobias Brick Date: Thu, 17 Apr 2025 14:50:36 +0000 (+0000) Subject: Fix use after free bugs for public_keys and private_keys in evp_test X-Git-Tag: openssl-3.3.4~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1daf80a936faac837bdcc74a43031bc5055a00bf;p=thirdparty%2Fopenssl.git Fix use after free bugs for public_keys and private_keys in evp_test Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27421) (cherry picked from commit 81e8b5a5038b4952a22b2dc9fcf9994615ee8dc4) --- diff --git a/test/evp_test.c b/test/evp_test.c index 8863663295d..d8923871404 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -4142,7 +4142,9 @@ static int run_file_tests(int i) clear_test(t); free_key_list(public_keys); + public_keys = NULL; free_key_list(private_keys); + private_keys = NULL; BIO_free(t->s.key); c = t->s.errors; OPENSSL_free(t);