summaryrefslogtreecommitdiff
path: root/security/openssl/patches
diff options
context:
space:
mode:
authorpettai <pettai@pkgsrc.org>2012-03-05 00:26:54 +0000
committerpettai <pettai@pkgsrc.org>2012-03-05 00:26:54 +0000
commitf17fbd5082e85209b864b1f909b6729e3ef4b9b0 (patch)
tree5625b7f298100d2be858779f5c5b03eca404da1c /security/openssl/patches
parent26e3b020d5550d15097626dbe7f9c018e5367f5b (diff)
downloadpkgsrc-f17fbd5082e85209b864b1f909b6729e3ef4b9b0.tar.gz
Add fix for CVE-2006-7250
Diffstat (limited to 'security/openssl/patches')
-rw-r--r--security/openssl/patches/patch-asn_mime.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/security/openssl/patches/patch-asn_mime.c b/security/openssl/patches/patch-asn_mime.c
new file mode 100644
index 00000000000..d44032fd797
--- /dev/null
+++ b/security/openssl/patches/patch-asn_mime.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-asn_mime.c,v 1.1 2012/03/05 00:26:55 pettai Exp $
+
+http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-7250
+
+--- crypto/asn1/asn_mime.c.orig 2012-03-05 00:08:44.000000000 +0000
++++ crypto/asn1/asn_mime.c
+@@ -790,6 +790,10 @@ static int mime_hdr_addparam(MIME_HEADER
+ static int mime_hdr_cmp(const MIME_HEADER * const *a,
+ const MIME_HEADER * const *b)
+ {
++ if ((*a)->name == NULL || (*b)->name == NULL)
++ return (*a)->name - (*b)->name < 0 ? -1 :
++ (*a)->name - (*b)->name > 0 ? 1 : 0;
++
+ return(strcmp((*a)->name, (*b)->name));
+ }
+