]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix use after free bugs for public_keys and private_keys in evp_test
authorTobias Brick <tobiasb@microsoft.com>
Thu, 17 Apr 2025 14:50:36 +0000 (14:50 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 5 May 2025 14:03:09 +0000 (16:03 +0200)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27421)

test/evp_test.c

index 231cfe7b7e03998f0d27fd8165fcc89d1cc07395..ea014d11b95a258555700d10e007d4a01d75b721 100644 (file)
@@ -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);