[openssl-commits] [openssl] OpenSSL_1_0_2-stable update
Matt Caswell
matt at openssl.org
Mon Sep 10 16:42:26 UTC 2018
The branch OpenSSL_1_0_2-stable has been updated
via 4a98bb0068cae9fbe5c6a6e513093d41969dad58 (commit)
from 6e873259029939657a297e9fe451196df4e3da48 (commit)
- Log -----------------------------------------------------------------
commit 4a98bb0068cae9fbe5c6a6e513093d41969dad58
Author: Matt Caswell <matt at openssl.org>
Date: Mon Sep 10 16:23:14 2018 +0100
Check the return value from ASN1_INTEGER_set
Found by Coverity
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7169)
(cherry picked from commit 512d811719fc955f574090af4c3586a9aba46fa7)
-----------------------------------------------------------------------
Summary of changes:
crypto/pkcs12/p12_init.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/crypto/pkcs12/p12_init.c b/crypto/pkcs12/p12_init.c
index 0322df9..8275a23 100644
--- a/crypto/pkcs12/p12_init.c
+++ b/crypto/pkcs12/p12_init.c
@@ -70,7 +70,8 @@ PKCS12 *PKCS12_init(int mode)
PKCS12err(PKCS12_F_PKCS12_INIT, ERR_R_MALLOC_FAILURE);
return NULL;
}
- ASN1_INTEGER_set(pkcs12->version, 3);
+ if (!ASN1_INTEGER_set(pkcs12->version, 3))
+ goto err;
pkcs12->authsafes->type = OBJ_nid2obj(mode);
switch (mode) {
case NID_pkcs7_data:
More information about the openssl-commits
mailing list