Hello community, here is the log from the commit of package mozilla-nspr for openSUSE:Factory checked in at 2012-10-26 17:26:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mozilla-nspr (Old) and /work/SRC/openSUSE:Factory/.mozilla-nspr.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mozilla-nspr", Maintainer is "gnome-maintain...@suse.de" Changes: -------- --- /work/SRC/openSUSE:Factory/mozilla-nspr/mozilla-nspr.changes 2012-07-25 10:35:35.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mozilla-nspr.new/mozilla-nspr.changes 2012-10-26 17:26:15.000000000 +0200 @@ -1,0 +2,9 @@ +Thu Oct 25 11:52:11 UTC 2012 - w...@rosenauer.org + +- update to version 4.9.3 + * bmo#749849: NSPR pthread_key_t leak and memory corruption. + * bmo#794316: PR_PushIOLayer doesn't push layer on the top correctly + * bmo#795213: clang's -Wtautological-constant-out-of-range-compare + warns on prnetdb.c + +------------------------------------------------------------------- Old: ---- nspr-4.9.2.tar.bz2 New: ---- nspr-4.9.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mozilla-nspr.spec ++++++ --- /var/tmp/diff_new_pack.mllJeR/_old 2012-10-26 17:26:16.000000000 +0200 +++ /var/tmp/diff_new_pack.mllJeR/_new 2012-10-26 17:26:16.000000000 +0200 @@ -18,7 +18,7 @@ Name: mozilla-nspr -Version: 4.9.2 +Version: 4.9.3 Release: 0 Summary: Netscape Portable Runtime License: MPL-2.0 ++++++ nspr-4.9.2.tar.bz2 -> nspr-4.9.3.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/admin/repackage.sh new/nspr-4.9.3/mozilla/nsprpub/admin/repackage.sh --- old/nspr-4.9.2/mozilla/nsprpub/admin/repackage.sh 2012-07-24 10:48:27.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/admin/repackage.sh 2012-10-25 13:50:59.000000000 +0200 @@ -32,10 +32,10 @@ # # ------------------------------------------------------------------ -FROMTOP=/share/builds/components/nspr20/v4.9.2 -TOTOP=./v4.9.2 -NSPRDIR=nspr-4.9.2 -SOURCETAG=NSPR_4_9_2_RTM +FROMTOP=/share/builds/components/nspr20/v4.9.3 +TOTOP=./v4.9.3 +NSPRDIR=nspr-4.9.3 +SOURCETAG=NSPR_4_9_3_RTM # # enumerate Unix object directories on /s/b/c diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/configure new/nspr-4.9.3/mozilla/nsprpub/configure --- old/nspr-4.9.2/mozilla/nsprpub/configure 2012-07-24 10:48:27.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/configure 2012-10-25 13:50:59.000000000 +0200 @@ -736,7 +736,7 @@ MOD_MAJOR_VERSION=4 MOD_MINOR_VERSION=9 -MOD_PATCH_VERSION=2 +MOD_PATCH_VERSION=3 NSPR_MODNAME=nspr20 _HAVE_PTHREADS= USE_PTHREADS= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/configure.in new/nspr-4.9.3/mozilla/nsprpub/configure.in --- old/nspr-4.9.2/mozilla/nsprpub/configure.in 2012-07-24 10:48:27.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/configure.in 2012-10-25 13:50:59.000000000 +0200 @@ -15,7 +15,7 @@ dnl ======================================================== MOD_MAJOR_VERSION=4 MOD_MINOR_VERSION=9 -MOD_PATCH_VERSION=2 +MOD_PATCH_VERSION=3 NSPR_MODNAME=nspr20 _HAVE_PTHREADS= USE_PTHREADS= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/include/md/_linux.cfg new/nspr-4.9.3/mozilla/nsprpub/pr/include/md/_linux.cfg --- old/nspr-4.9.2/mozilla/nsprpub/pr/include/md/_linux.cfg 2012-06-01 16:48:44.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/include/md/_linux.cfg 2012-10-25 13:50:59.000000000 +0200 @@ -212,6 +212,53 @@ #elif defined(__x86_64__) +#ifdef __ILP32__ + +#define IS_LITTLE_ENDIAN 1 +#undef IS_BIG_ENDIAN + +#define PR_BYTES_PER_BYTE 1 +#define PR_BYTES_PER_SHORT 2 +#define PR_BYTES_PER_INT 4 +#define PR_BYTES_PER_INT64 8 +#define PR_BYTES_PER_LONG 4 +#define PR_BYTES_PER_FLOAT 4 +#define PR_BYTES_PER_DOUBLE 8 +#define PR_BYTES_PER_WORD 4 +#define PR_BYTES_PER_DWORD 8 + +#define PR_BITS_PER_BYTE 8 +#define PR_BITS_PER_SHORT 16 +#define PR_BITS_PER_INT 32 +#define PR_BITS_PER_INT64 64 +#define PR_BITS_PER_LONG 32 +#define PR_BITS_PER_FLOAT 32 +#define PR_BITS_PER_DOUBLE 64 +#define PR_BITS_PER_WORD 32 + +#define PR_BITS_PER_BYTE_LOG2 3 +#define PR_BITS_PER_SHORT_LOG2 4 +#define PR_BITS_PER_INT_LOG2 5 +#define PR_BITS_PER_INT64_LOG2 6 +#define PR_BITS_PER_LONG_LOG2 5 +#define PR_BITS_PER_FLOAT_LOG2 5 +#define PR_BITS_PER_DOUBLE_LOG2 6 +#define PR_BITS_PER_WORD_LOG2 5 + +#define PR_ALIGN_OF_SHORT 2 +#define PR_ALIGN_OF_INT 4 +#define PR_ALIGN_OF_LONG 4 +#define PR_ALIGN_OF_INT64 4 +#define PR_ALIGN_OF_FLOAT 4 +#define PR_ALIGN_OF_DOUBLE 4 +#define PR_ALIGN_OF_POINTER 4 +#define PR_ALIGN_OF_WORD 4 + +#define PR_BYTES_PER_WORD_LOG2 2 +#define PR_BYTES_PER_DWORD_LOG2 3 + +#else + #define IS_LITTLE_ENDIAN 1 #undef IS_BIG_ENDIAN #define IS_64 @@ -256,6 +303,8 @@ #define PR_BYTES_PER_WORD_LOG2 3 #define PR_BYTES_PER_DWORD_LOG2 3 +#endif + #elif defined(__mc68000__) #undef IS_LITTLE_ENDIAN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/include/prinit.h new/nspr-4.9.3/mozilla/nsprpub/pr/include/prinit.h --- old/nspr-4.9.2/mozilla/nsprpub/pr/include/prinit.h 2012-07-24 10:48:28.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/include/prinit.h 2012-10-25 13:50:59.000000000 +0200 @@ -31,10 +31,10 @@ ** The format of the version string is ** "<major version>.<minor version>[.<patch level>] [<Beta>]" */ -#define PR_VERSION "4.9.2" +#define PR_VERSION "4.9.3" #define PR_VMAJOR 4 #define PR_VMINOR 9 -#define PR_VPATCH 2 +#define PR_VPATCH 3 #define PR_BETA PR_FALSE /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/src/io/prlayer.c new/nspr-4.9.3/mozilla/nsprpub/pr/src/io/prlayer.c --- old/nspr-4.9.2/mozilla/nsprpub/pr/src/io/prlayer.c 2012-06-01 16:48:44.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/src/io/prlayer.c 2012-10-25 13:50:59.000000000 +0200 @@ -523,6 +523,11 @@ *stack = *fd; *fd = copy; fd->higher = stack; + if (fd->lower) + { + PR_ASSERT(fd->lower->higher == stack); + fd->lower->higher = fd; + } stack->lower = fd; stack->higher = NULL; } else { @@ -561,6 +566,10 @@ *stack = *extract; *extract = copy; stack->higher = NULL; + if (stack->lower) { + PR_ASSERT(stack->lower->higher == extract); + stack->lower->higher = stack; + } } else if ((PR_IO_LAYER_HEAD == stack->identity) && (extract == stack->lower) && (extract->lower == NULL)) { /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/src/misc/prnetdb.c new/nspr-4.9.3/mozilla/nsprpub/pr/src/misc/prnetdb.c --- old/nspr-4.9.2/mozilla/nsprpub/pr/src/misc/prnetdb.c 2012-06-01 16:48:45.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/src/misc/prnetdb.c 2012-10-25 13:50:59.000000000 +0200 @@ -1998,7 +1998,7 @@ #endif { PRADDRINFO *res, hints; - PRStatus rv; + int rv; /* * we assume a RFC 2553 compliant getaddrinfo. this may at some diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/src/pthreads/ptthread.c new/nspr-4.9.3/mozilla/nsprpub/pr/src/pthreads/ptthread.c --- old/nspr-4.9.2/mozilla/nsprpub/pr/src/pthreads/ptthread.c 2012-07-24 10:48:28.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/src/pthreads/ptthread.c 2012-10-25 13:50:59.000000000 +0200 @@ -43,7 +43,7 @@ PRCondVar *cv; /* used to signal global things */ PRInt32 system, user; /* a count of the two different types */ PRUintn this_many; /* number of threads allowed for exit */ - pthread_key_t key; /* private private data key */ + pthread_key_t key; /* thread private data key */ PRThread *first, *last; /* list of threads we know about */ #if defined(_PR_DCETHREADS) || defined(_POSIX_THREAD_PRIORITY_SCHEDULING) PRInt32 minPrio, maxPrio; /* range of scheduling priorities */ @@ -975,6 +975,8 @@ rv = pthread_setspecific(pt_book.key, NULL); PR_ASSERT(0 == rv); } + rv = pthread_key_delete(pt_book.key); + PR_ASSERT(0 == rv); /* TODO: free other resources used by NSPR */ /* _pr_initialized = PR_FALSE; */ } /* _PR_Fini */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/tests/Makefile.in new/nspr-4.9.3/mozilla/nsprpub/pr/tests/Makefile.in --- old/nspr-4.9.2/mozilla/nsprpub/pr/tests/Makefile.in 2012-06-01 16:48:45.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/tests/Makefile.in 2012-10-25 13:50:59.000000000 +0200 @@ -114,6 +114,7 @@ provider.c \ prpoll.c \ prpollml.c \ + pushtop.c \ ranfile.c \ randseed.c \ reinit.c \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/tests/pushtop.c new/nspr-4.9.3/mozilla/nsprpub/pr/tests/pushtop.c --- old/nspr-4.9.2/mozilla/nsprpub/pr/tests/pushtop.c 1970-01-01 01:00:00.000000000 +0100 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/tests/pushtop.c 2012-09-28 16:21:22.000000000 +0200 @@ -0,0 +1,73 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/* A regression test for bug 794316 */ + +#include <stdio.h> +#include <stdlib.h> + +#include "prio.h" + +static PRIOMethods dummyMethods; + +int main() +{ + PRDescIdentity topId, middleId, bottomId; + PRFileDesc *top, *middle, *bottom; + PRFileDesc *fd; + + topId = PR_GetUniqueIdentity("top"); + middleId = PR_GetUniqueIdentity("middle"); + bottomId = PR_GetUniqueIdentity("bottom"); + + top = PR_CreateIOLayerStub(topId, &dummyMethods); + middle = PR_CreateIOLayerStub(middleId, &dummyMethods); + bottom = PR_CreateIOLayerStub(bottomId, &dummyMethods); + + fd = bottom; + PR_PushIOLayer(fd, PR_TOP_IO_LAYER, middle); + PR_PushIOLayer(fd, PR_TOP_IO_LAYER, top); + + top = fd; + middle = top->lower; + bottom = middle->lower; + + /* Verify that the higher pointers are correct. */ + if (middle->higher != top) { + fprintf(stderr, "middle->higher is wrong\n"); + fprintf(stderr, "FAILED\n"); + exit(1); + } + if (bottom->higher != middle) { + fprintf(stderr, "bottom->higher is wrong\n"); + fprintf(stderr, "FAILED\n"); + exit(1); + } + + top = PR_PopIOLayer(fd, topId); + top->dtor(top); + + middle = fd; + bottom = middle->lower; + + /* Verify that the higher pointer is correct. */ + if (bottom->higher != middle) { + fprintf(stderr, "bottom->higher is wrong\n"); + fprintf(stderr, "FAILED\n"); + exit(1); + } + + middle = PR_PopIOLayer(fd, middleId); + middle->dtor(middle); + if (fd->identity != bottomId) { + fprintf(stderr, "The bottom layer has the wrong identity\n"); + fprintf(stderr, "FAILED\n"); + exit(1); + } + fd->dtor(fd); + + printf("PASS\n"); + return 0; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/tests/runtests.pl new/nspr-4.9.3/mozilla/nsprpub/pr/tests/runtests.pl --- old/nspr-4.9.2/mozilla/nsprpub/pr/tests/runtests.pl 2012-06-01 16:48:45.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/tests/runtests.pl 2012-10-25 13:50:59.000000000 +0200 @@ -313,6 +313,7 @@ "primblok", "provider", "prpollml", +"pushtop", "ranfile", "randseed", "reinit", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/tests/runtests.sh new/nspr-4.9.3/mozilla/nsprpub/pr/tests/runtests.sh --- old/nspr-4.9.2/mozilla/nsprpub/pr/tests/runtests.sh 2012-06-01 16:48:45.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/tests/runtests.sh 2012-10-25 13:50:59.000000000 +0200 @@ -143,6 +143,7 @@ primblok provider prpollml +pushtop ranfile randseed reinit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.9.2/mozilla/nsprpub/pr/tests/vercheck.c new/nspr-4.9.3/mozilla/nsprpub/pr/tests/vercheck.c --- old/nspr-4.9.2/mozilla/nsprpub/pr/tests/vercheck.c 2012-07-24 10:48:28.000000000 +0200 +++ new/nspr-4.9.3/mozilla/nsprpub/pr/tests/vercheck.c 2012-10-25 13:50:59.000000000 +0200 @@ -20,9 +20,9 @@ #include <stdlib.h> /* - * This release (4.9.2) is backward compatible with the + * This release (4.9.3) is backward compatible with the * 4.0.x, 4.1.x, 4.2.x, 4.3.x, 4.4.x, 4.5.x, 4.6.x, 4.7.x, - * 4.8.x, 4.9, and 4.9.1 releases. It, of course, + * 4.8.x, 4.9, 4.9.1, and 4.9.2 releases. It, of course, * is compatible with itself. */ static char *compatible_version[] = { @@ -35,7 +35,7 @@ "4.7.6", "4.8", "4.8.1", "4.8.2", "4.8.3", "4.8.4", "4.8.5", "4.8.6", "4.8.7", "4.8.8", "4.8.9", - "4.9", "4.9.1", PR_VERSION + "4.9", "4.9.1", "4.9.2", PR_VERSION }; /* @@ -50,7 +50,7 @@ "3.0", "3.0.1", "3.1", "3.1.1", "3.1.2", "3.1.3", "3.5", "3.5.1", - "4.9.3", + "4.9.4", "4.10", "4.10.1", "10.0", "11.1", "12.14.20" }; -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org