projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e0a80c
)
Initialize variable
author
Emilia Kasper
<emilia@openssl.org>
Tue, 14 Apr 2015 15:42:42 +0000
(17:42 +0200)
committer
Emilia Kasper
<emilia@openssl.org>
Wed, 15 Apr 2015 12:19:12 +0000
(14:19 +0200)
newsig may be used (freed) uninitialized on a malloc error.
Reviewed-by: Rich Salz <rsalz@openssl.org>
engines/ccgost/gost_sign.c
patch
|
blob
|
history
diff --git
a/engines/ccgost/gost_sign.c
b/engines/ccgost/gost_sign.c
index fad2004361a1df6eed543c5c51c8b99711246ae2..1d7ed86da2b2b26c4092ee32b7d659da02a7eaf2 100644
(file)
--- a/
engines/ccgost/gost_sign.c
+++ b/
engines/ccgost/gost_sign.c
@@
-54,7
+54,7
@@
void dump_dsa_sig(const char *message, DSA_SIG *sig)
DSA_SIG *gost_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
{
BIGNUM *k = NULL, *tmp = NULL, *tmp2 = NULL;
- DSA_SIG *newsig, *ret = NULL;
+ DSA_SIG *newsig
= NULL
, *ret = NULL;
BIGNUM *md = hashsum2bn(dgst);
/* check if H(M) mod q is zero */
BN_CTX *ctx = BN_CTX_new();