From 1850759856ce02a456b2f4f0b8cbb17016a7d359 Mon Sep 17 00:00:00 2001 From: Elio Maldonado Date: Fri, 4 Feb 2011 15:20:54 -0800 Subject: [PATCH] - Fix the earlier infinite recursion patch (#499444) - Remove a header that now nss-softokn-freebl-devel ships --- nss-recurse.patch | 17 +++++++++++++++++ nss.spec | 11 +++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 nss-recurse.patch diff --git a/nss-recurse.patch b/nss-recurse.patch new file mode 100644 index 0000000..999d906 --- /dev/null +++ b/nss-recurse.patch @@ -0,0 +1,17 @@ +Handle decoding of one CMS structure inside another. Plain data as the +top-level item in a message needs work. + +diff -ur ./mozilla/security/nss/lib/smime/cmsdecode.c ./mozilla/security/nss/lib/smime/cmsdecode.c +--- ./mozilla/security/nss/lib/smime/cmsdecode.c 2010-12-23 13:03:41.000000000 -0500 ++++ ./mozilla/security/nss/lib/smime/cmsdecode.c 2011-01-12 15:22:22.245908999 -0500 +@@ -307,6 +307,9 @@ + if (childp7dcx->content.pointer == NULL) + goto loser; + ++ /* give the parent a copy of the pointer so that it doesn't get lost */ ++ cinfo->content.pointer = childp7dcx->content.pointer; ++ + /* start the child decoder */ + childp7dcx->dcx = SEC_ASN1DecoderStart(poolp, childp7dcx->content.pointer, + template); + diff --git a/nss.spec b/nss.spec index 0ed8a30..17055a3 100644 --- a/nss.spec +++ b/nss.spec @@ -6,7 +6,7 @@ Summary: Network Security Services Name: nss Version: 3.12.9 -Release: 4%{?dist} +Release: 5%{?dist} License: MPLv1.1 or GPLv2+ or LGPLv2+ URL: http://www.mozilla.org/projects/security/pki/nss/ Group: System Environment/Libraries @@ -44,6 +44,7 @@ Patch6: nss-enable-pem.patch Patch7: nsspem-642433.patch Patch11: honor-user-trust-preferences.patch Patch12: allow-content-types-beyond-smime.patch +Patch13: nss-recurse.patch %description Network Security Services (NSS) is a set of libraries designed to @@ -117,6 +118,7 @@ low level services. %patch7 -p0 -b .642433 %patch11 -p1 -b .643134 %patch12 -p1 -b .contenttypes +%patch13 -p1 -b .recurse %build @@ -358,7 +360,8 @@ rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/secoidt.h rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/secport.h rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/utilrename.h -#remove header shipped in nss-softokn-devel +#remove the nss-softokn-devel and nss-softokn-freebl-devel headers +rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/alghmac.h rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/blapit.h rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/ecl-exp.h rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/hasht.h @@ -492,6 +495,10 @@ rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/nsslowhash.h %{_libdir}/libnssckfw.a %changelog +* Fri Feb 04 2011 Elio Maldonado - 3.12.9-5 +- Fix the earlier infinite recursion patch (#499444) +- Remove a header that now nss-softokn-freebl-devel ships + * Tue Feb 01 2011 Elio Maldonado - 3.12.9-4 - Fix infinite recursion when encoding NSS enveloped/digested data (#499444)