]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Drop a spurious printf in evp_test.c
authorMatt Caswell <matt@openssl.org>
Fri, 2 Dec 2022 09:27:34 +0000 (09:27 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 5 Dec 2022 10:58:20 +0000 (10:58 +0000)
A spurious printf was added to evp_test.c - probably for debugging
purposes. This actually causes runtime errors in some cases because the
name being printed can be NULL.

Fixes #19814

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19820)

test/evp_test.c

index 9f5d617edfea45c6848bedf2c8077b556c124afd..44bba48fd27b2bb0b31f9765326580ef849f3f0f 100644 (file)
@@ -426,7 +426,6 @@ static int digest_test_run(EVP_TEST *t)
     int xof = 0;
     OSSL_PARAM params[2];
 
-    printf("test %s (%d %d)\n", t->name, t->s.start, t->s.curr);
     t->err = "TEST_FAILURE";
     if (!TEST_ptr(mctx = EVP_MD_CTX_new()))
         goto err;