aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2022-07-15 14:15:37 +0200
committerGitHub <noreply@github.com>2022-07-15 14:15:37 +0200
commitbe1ac1b430c7e6b601bf75b91943161cef5cd5df (patch)
tree8d5481fa1ca5c7eff74c931e1c9a99b66cbc95f9 /src
parentb80218a0e45f9c18a0492c4e6679ba8ebc5ca22c (diff)
Fix unitialized use of W[16]. (#1662)
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/third_party/src/gcrypt/digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/third_party/src/gcrypt/digest.c b/src/lib/third_party/src/gcrypt/digest.c
index 3cdd1f1f8..e68d905cf 100644
--- a/src/lib/third_party/src/gcrypt/digest.c
+++ b/src/lib/third_party/src/gcrypt/digest.c
@@ -130,7 +130,7 @@ sha256_init(sha256_t *p)
static void
sha256_transform(uint32_t *state, const uint32_t *data)
{
- uint32_t W[16];
+ uint32_t W[16] = {};
unsigned j;
#ifdef _SHA256_UNROLL2
uint32_t a,b,c,d,e,f,g,h;