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:
c256e69
)
Initialise CMS signature buffer length properly.
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 2 Jul 2013 21:11:27 +0000
(22:11 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 2 Jul 2013 21:12:19 +0000
(22:12 +0100)
crypto/cms/cms_sd.c
patch
|
blob
|
history
diff --git
a/crypto/cms/cms_sd.c
b/crypto/cms/cms_sd.c
index b7dbf52ab1ef0d5908658a3e9080cf756c52348b..8f672890a076f6089b7ef41ab988e025c0f0533a 100644
(file)
--- a/
crypto/cms/cms_sd.c
+++ b/
crypto/cms/cms_sd.c
@@
-700,7
+700,8
@@
static int cms_SignerInfo_content_sign(CMS_ContentInfo *cms,
pctx = si->pctx;
if (!EVP_DigestFinal_ex(&mctx, md, &mdlen))
goto err;
- sig = OPENSSL_malloc(EVP_PKEY_size(si->pkey));
+ siglen = EVP_PKEY_size(si->pkey);
+ sig = OPENSSL_malloc(siglen);
if (!sig)
{
CMSerr(CMS_F_CMS_SIGNERINFO_CONTENT_SIGN,