The branch OpenSSL_1_1_0-stable has been updated
via 68f04fa1ddc71c67822796bee7abaf32a87203a8 (commit)
from b403cc386cb927f6838a2fc300cd1d872007ba65 (commit)
- Log -----------------------------------------------------------------
commit 68f04fa1ddc71c67822796bee7abaf32a87203a8
Author: Matt Caswell <[email protected]>
Date: Thu Mar 22 14:33:05 2018 +0000
Don't write out a bad OID
If we don't have OID data for an object then we should fail if we
are asked to encode the ASN.1 for that OID.
Fixes #5723
Reviewed-by: Rich Salz <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/5725)
(cherry picked from commit 53c9818e970fc0c22d77e19fda3b3e6f6c9e759d)
-----------------------------------------------------------------------
Summary of changes:
crypto/asn1/tasn_enc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crypto/asn1/tasn_enc.c b/crypto/asn1/tasn_enc.c
index caa4869..8b562ba 100644
--- a/crypto/asn1/tasn_enc.c
+++ b/crypto/asn1/tasn_enc.c
@@ -528,6 +528,8 @@ static int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char
*cout, int *putype,
otmp = (ASN1_OBJECT *)*pval;
cont = otmp->data;
len = otmp->length;
+ if (cont == NULL || len == 0)
+ return -1;
break;
case V_ASN1_NULL:
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits