Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-1.9.git;a=commitdiff;h=3a733267eac41fe525c36690653493b58a24b515
commit 3a733267eac41fe525c36690653493b58a24b515 Author: kikadf <[email protected]> Date: Fri Jan 17 18:27:33 2014 +0100 nspr-4.9.2-4arcturus1-x86_64 * Fix CVE-2013-5607 diff --git a/source/base/nspr/CVE-2013-5607.patch b/source/base/nspr/CVE-2013-5607.patch new file mode 100644 index 0000000..529677e --- /dev/null +++ b/source/base/nspr/CVE-2013-5607.patch @@ -0,0 +1,27 @@ + +# HG changeset patch +# User Wan-Teh Chang <[email protected]> +# Date 1383160555 25200 +# Node ID 4df6bc35be64c660cd9770637a2f9e8247c6c407 +# Parent 9b26e99c21c37c97d3ca286c3ac96e2fd82e980d +Bug 927687: Avoid unsigned integer wrapping in PL_ArenaAllocate. r=rrelyea. + +Index: nspr-4.9.2/mozilla/nsprpub/lib/ds/plarena.c +=================================================================== +--- nspr-4.9.2.orig/mozilla/nsprpub/lib/ds/plarena.c 2012-07-20 08:32:28.000000000 +0200 ++++ nspr-4.9.2/mozilla/nsprpub/lib/ds/plarena.c 2013-12-16 17:09:04.147721841 +0100 +@@ -196,8 +196,12 @@ PR_IMPLEMENT(void *) PL_ArenaAllocate(PL + /* attempt to allocate from the heap */ + { + PRUint32 sz = PR_MAX(pool->arenasize, nb); +- sz += sizeof *a + pool->mask; /* header and alignment slop */ +- a = (PLArena*)PR_MALLOC(sz); ++ if (PR_UINT32_MAX - sz < sizeof *a + pool->mask) { ++ a = NULL; ++ } else { ++ sz += sizeof *a + pool->mask; /* header and alignment slop */ ++ a = (PLArena*)PR_MALLOC(sz); ++ } + if ( NULL != a ) { + a->limit = (PRUword)a + sz; + a->base = a->avail = (PRUword)PL_ARENA_ALIGN(pool, a + 1); diff --git a/source/base/nspr/FrugalBuild b/source/base/nspr/FrugalBuild index ece9f6e..eed959a 100644 --- a/source/base/nspr/FrugalBuild +++ b/source/base/nspr/FrugalBuild @@ -1,9 +1,11 @@ # Compiling Time: 0.36 SBU # Maintainer: Christian Hamar alias krix <[email protected]> +options+=('asneeded') + pkgname=nspr pkgver=4.9.2 -pkgrel=3 +pkgrel=4arcturus1 pkgdesc="NSPR library from mozilla.org" url="http://www.mozilla.org/projects/nspr/" pkgurl="http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/" @@ -17,6 +19,11 @@ source=($pkgurl/v${pkgver}/src/$pkgname-$pkgver.tar.gz nspr.pc) sha1sums=('455eab365f8fd732a4b014ca0af685f3c2dec598' \ 'd42605b2dce3e222f4bdddb3609347b229e9ada8') +# FSA fix *** +source=(${source[@]} CVE-2013-5607.patch) +sha1sums=(${sha1sums[@]} '928b34e8faa27369e012d9f397e3b6c91fa3ce19') +# *********** + build() { if [ "$CARCH" == "x86_64" ]; then _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
