projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8dd586
)
Fully initialise cipher/digest app handles
author
Viktor Dukhovni
<openssl-users@dukhovni.org>
Wed, 29 Sep 2021 22:03:13 +0000
(18:03 -0400)
committer
Pauli
<pauli@openssl.org>
Fri, 1 Oct 2021 01:03:46 +0000
(11:03 +1000)
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 https://github.com/openssl/openssl/pull/16714)
apps/openssl.c
patch
|
blob
|
history
diff --git
a/apps/openssl.c
b/apps/openssl.c
index 30e1e755e0148ccefa557ea4abe1239c54589d77..2693350ffc941bec58147973462c18d1212e1cfa 100644
(file)
--- a/
apps/openssl.c
+++ b/
apps/openssl.c
@@
-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) {