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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81e8b5a5038b4952a22b2dc9fcf9994615ee8dc4;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) --- diff --git a/test/evp_test.c b/test/evp_test.c index 231cfe7b7e0..ea014d11b95 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -5426,7 +5426,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);