components/openssl/common/patches/053-large-crl.patch
author Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
Mon, 29 Aug 2016 13:44:04 -0700
changeset 6708 4e02cfefe7e9
permissions -rw-r--r--
24528111 problem in LIBRARY/OPENSSL 24394794 CRL conversions from DER to PEM format fail for large CRL files. 24513545 XMPP element quoting confusion

# The patch is based on the following commit from the upstream:
# https://github.com/openssl/openssl/commit/a1eef756cc1948e
# The fix is patched until the new version becomes available
# from the upstream.
--- a/crypto/asn1/x_name.c
+++ b/crypto/asn1/x_name.c
@@ -199,10 +199,8 @@ static int x509_name_ex_d2i(ASN1_VALUE **val,
     int i, j, ret;
     STACK_OF(X509_NAME_ENTRY) *entries;
     X509_NAME_ENTRY *entry;
-    if (len > X509_NAME_MAX) {
-        ASN1err(ASN1_F_X509_NAME_EX_D2I, ASN1_R_TOO_LONG);
-        return 0;
-    }
+    if (len > X509_NAME_MAX)
+        len = X509_NAME_MAX;
     q = p;
 
     /* Get internal representation of Name */