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.4.2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2417ddcc3daba364c8927b1d1e6db3edafa4a7d8;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 0a09befc333..08abdf3648e 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -5068,7 +5068,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);