projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix the allocation size in EVP_OpenInit and PEM_SignFinal
[openssl.git]
/
crypto
/
pem
/
pem_sign.c
diff --git
a/crypto/pem/pem_sign.c
b/crypto/pem/pem_sign.c
index d8f6d07ae77ff46652f090f4a7af0b6b82ed8e67..4be03a479453ed9e951f2ef336e0971f07028754 100644
(file)
--- a/
crypto/pem/pem_sign.c
+++ b/
crypto/pem/pem_sign.c
@@
-31,7
+31,7
@@
int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,
int i, ret = 0;
unsigned int m_len;
- m = OPENSSL_malloc(EVP_PKEY_size(pkey)
+ 2
);
+ m = OPENSSL_malloc(EVP_PKEY_size(pkey));
if (m == NULL) {
PEMerr(PEM_F_PEM_SIGNFINAL, ERR_R_MALLOC_FAILURE);
goto err;