projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Coverity 1201740 & 1201712: uninitialised values
[openssl.git]
/
crypto
/
evp
/
e_des3.c
diff --git
a/crypto/evp/e_des3.c
b/crypto/evp/e_des3.c
index 1e1591834402ca1b8e6891fa926cea7018dc9358..c0bc7fdd8ffbc920e777de7dbf4305e40877f742 100644
(file)
--- a/
crypto/evp/e_des3.c
+++ b/
crypto/evp/e_des3.c
@@
-165,7
+165,8
@@
static int des_ede3_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
const unsigned char *in, size_t inl)
{
size_t n;
- unsigned char c[1], d[1];
+ unsigned char c[1];
+ unsigned char d[1] = { 0 }; /* Appease Coverity */
if (!EVP_CIPHER_CTX_test_flags(ctx, EVP_CIPH_FLAG_LENGTH_BITS))
inl *= 8;