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.0.17~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50b6457cedf11c3c5d4fabaa40e7ea6940f1b95b;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 2701040dabe..86b8198643a 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -3960,7 +3960,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);