Skip to content

Commit

Permalink
Fully initialise cipher/digest app handles
Browse files Browse the repository at this point in the history
This avoids a crash in e.g. `openssl chacha20` as reported by
Steffen Nurpmeso on openssl-users.

Resolves: #16713

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #16714)
  • Loading branch information
Viktor Dukhovni authored and paulidale committed Oct 1, 2021
1 parent f8dd586 commit a8cc0ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/openssl.c
Expand Up @@ -395,6 +395,7 @@ static int do_cmd(LHASH_OF(FUNCTION) *prog, int argc, char *argv[])

if (argc <= 0 || argv[0] == NULL)
return 0;
memset(&f, 0, sizeof(f));
f.name = argv[0];
fp = lh_FUNCTION_retrieve(prog, &f);
if (fp == NULL) {
Expand Down

0 comments on commit a8cc0ef

Please sign in to comment.