[packages/openssl102: 255/432] - fix segfault when playing with pkcs12; from gentoo; from upstream

adwol adwol at pld-linux.org
Sat Sep 29 01:23:00 CEST 2018


commit 526d458a274f9f1388c634a304062d54b22068e0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 18 13:55:55 2008 +0000

    - fix segfault when playing with pkcs12; from gentoo; from upstream
    
    Changed files:
        openssl-pkcs12.patch -> 1.1

 openssl-pkcs12.patch | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
---
diff --git a/openssl-pkcs12.patch b/openssl-pkcs12.patch
new file mode 100644
index 0000000..bec63f1
--- /dev/null
+++ b/openssl-pkcs12.patch
@@ -0,0 +1,21 @@
+fix from upstream
+
+http://bugs.gentoo.org/224843
+
+Index: crypto/x509/x509_att.c
+===================================================================
+RCS file: /usr/local/src/openssl/CVSROOT/openssl/crypto/x509/x509_att.c,v
+retrieving revision 1.8.2.2
+retrieving revision 1.8.2.3
+diff -u -p -r1.8.2.2 -r1.8.2.3
+--- crypto/x509/x509_att.c	2 Apr 2008 11:11:51 -0000	1.8.2.2
++++ crypto/x509/x509_att.c	30 May 2008 10:57:13 -0000	1.8.2.3
+@@ -303,7 +303,7 @@ int X509_ATTRIBUTE_set1_data(X509_ATTRIB
+ 	}
+ 	if(!(attr->value.set = sk_ASN1_TYPE_new_null())) goto err;
+ 	if(!(ttmp = ASN1_TYPE_new())) goto err;
+-	if (len == -1)
++	if ((len == -1) && !(attrtype & MBSTRING_FLAG))
+ 		{
+ 		if (!ASN1_TYPE_set1(ttmp, attrtype, data))
+ 			goto err;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssl102.git/commitdiff/9fc1b1b87b259e8a327c99835865e91a391efc9e



More information about the pld-cvs-commit mailing list