Skip to content

Commit

Permalink
Drop a spurious printf in evp_test.c
Browse files Browse the repository at this point in the history
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 #19820)
  • Loading branch information
mattcaswell committed Dec 5, 2022
1 parent 3c53032 commit 12c20c5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/evp_test.c
Expand Up @@ -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;
Expand Down

0 comments on commit 12c20c5

Please sign in to comment.