Hello community, here is the log from the commit of package mozilla-nspr for openSUSE:Factory checked in at 2013-11-14 08:42:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mozilla-nspr (Old) and /work/SRC/openSUSE:Factory/.mozilla-nspr.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mozilla-nspr" Changes: -------- --- /work/SRC/openSUSE:Factory/mozilla-nspr/mozilla-nspr.changes 2013-09-29 17:50:15.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mozilla-nspr.new/mozilla-nspr.changes 2013-11-14 08:42:43.000000000 +0100 @@ -1,0 +2,8 @@ +Mon Nov 11 21:59:52 UTC 2013 - [email protected] + +- update to version 4.10.2 + relevant changes + * bmo#770534: possible pointer overflow in PL_ArenaAllocate() + * bmo#888546: ptio.c:PR_ImportUDPSocket doesn't work + +------------------------------------------------------------------- Old: ---- nspr-4.10.1.tar.bz2 New: ---- nspr-4.10.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mozilla-nspr.spec ++++++ --- /var/tmp/diff_new_pack.jPnjmz/_old 2013-11-14 08:42:44.000000000 +0100 +++ /var/tmp/diff_new_pack.jPnjmz/_new 2013-11-14 08:42:44.000000000 +0100 @@ -18,7 +18,7 @@ Name: mozilla-nspr -Version: 4.10.1 +Version: 4.10.2 Release: 0 Summary: Netscape Portable Runtime License: MPL-2.0 ++++++ nspr-4.10.1.tar.bz2 -> nspr-4.10.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.10.1/.hgtags new/nspr-4.10.2/.hgtags --- old/nspr-4.10.1/.hgtags 2013-09-22 14:13:04.000000000 +0200 +++ new/nspr-4.10.2/.hgtags 2013-11-11 22:54:52.000000000 +0100 @@ -1175,3 +1175,6 @@ e340a6460b89512d1a104f8108d9df3b7534ac7c NSPR_4_10_RTM f6804cfde4e14bb1c5f2c47f5666054ccf5f8049 NSPR_4_10_1_BETA1 398f1792740712366aa33dcd4224b4d072121bf4 NSPR_4_10_1_BETA2 +f1edf4123d7e71bd9b9aa4b6b574e5cda65133ab NSPR_4_10_1_RTM +d968016a6cf677a124995433d37102903b8c8226 NSPR_4_10_2_BETA1 +4df6bc35be64c660cd9770637a2f9e8247c6c407 NSPR_4_10_2_BETA2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.10.1/configure new/nspr-4.10.2/configure --- old/nspr-4.10.1/configure 2013-09-22 14:12:37.000000000 +0200 +++ new/nspr-4.10.2/configure 2013-11-11 22:54:52.000000000 +0100 @@ -736,7 +736,7 @@ MOD_MAJOR_VERSION=4 MOD_MINOR_VERSION=10 -MOD_PATCH_VERSION=1 +MOD_PATCH_VERSION=2 NSPR_MODNAME=nspr20 _HAVE_PTHREADS= USE_PTHREADS= @@ -4618,6 +4618,12 @@ PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952" PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" + if test "$MSC_VER" -ge "1800"; then + CFLAGS="$CFLAGS -FS" + PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw" + PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw" + fi + if test -z "$MOZ_OPTIMIZE"; then CFLAGS="$CFLAGS -Od" fi @@ -4922,17 +4928,17 @@ _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000" ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6 -echo "configure:4926: checking for machine/builtins.h" >&5 +echo "configure:4932: checking for machine/builtins.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 4931 "configure" +#line 4937 "configure" #include "confdefs.h" #include <machine/builtins.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5491,7 +5497,7 @@ ;; *) echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:5495: checking for dlopen in -ldl" >&5 +echo "configure:5501: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5499,7 +5505,7 @@ ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <<EOF -#line 5503 "configure" +#line 5509 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -5510,7 +5516,7 @@ dlopen() ; return 0; } EOF -if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5527,17 +5533,17 @@ echo "$ac_t""yes" 1>&6 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 -echo "configure:5531: checking for dlfcn.h" >&5 +echo "configure:5537: checking for dlfcn.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5536 "configure" +#line 5542 "configure" #include "confdefs.h" #include <dlfcn.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5570,13 +5576,13 @@ if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:5574: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:5580: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext <<EOF -#line 5580 "configure" +#line 5586 "configure" #include "confdefs.h" #include <sgtty.h> Autoconf TIOCGETP @@ -5594,7 +5600,7 @@ if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext <<EOF -#line 5598 "configure" +#line 5604 "configure" #include "confdefs.h" #include <termio.h> Autoconf TCGETA @@ -5620,12 +5626,12 @@ for ac_func in dladdr gettid lchown setpriority strerror syscall do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5624: checking for $ac_func" >&5 +echo "configure:5630: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5629 "configure" +#line 5635 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -5648,7 +5654,7 @@ ; return 0; } EOF -if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5700,7 +5706,7 @@ # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:5704: checking for $ac_word" >&5 +echo "configure:5710: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_CCACHE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5759,7 +5765,7 @@ if test -z "$GNU_CC"; then echo $ac_n "checking for +Olit support""... $ac_c" 1>&6 -echo "configure:5763: checking for +Olit support" >&5 +echo "configure:5769: checking for +Olit support" >&5 if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5801,7 +5807,7 @@ *) echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 -echo "configure:5805: checking for pthread_create in -lpthreads" >&5 +echo "configure:5811: checking for pthread_create in -lpthreads" >&5 echo " #include <pthread.h> void *foo(void *v) { return v; } @@ -5823,7 +5829,7 @@ echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:5827: checking for pthread_create in -lpthread" >&5 +echo "configure:5833: checking for pthread_create in -lpthread" >&5 echo " #include <pthread.h> void *foo(void *v) { return v; } @@ -5845,7 +5851,7 @@ echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:5849: checking for pthread_create in -lc_r" >&5 +echo "configure:5855: checking for pthread_create in -lc_r" >&5 echo " #include <pthread.h> void *foo(void *v) { return v; } @@ -5867,7 +5873,7 @@ echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:5871: checking for pthread_create in -lc" >&5 +echo "configure:5877: checking for pthread_create in -lc" >&5 echo " #include <pthread.h> void *foo(void *v) { return v; } @@ -5985,7 +5991,7 @@ rm -f conftest* ac_cv_have_dash_pthread=no echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6 -echo "configure:5989: checking whether ${CC-cc} accepts -pthread" >&5 +echo "configure:5995: checking whether ${CC-cc} accepts -pthread" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then @@ -6008,7 +6014,7 @@ ac_cv_have_dash_pthreads=no if test "$ac_cv_have_dash_pthread" = "no"; then echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6 -echo "configure:6012: checking whether ${CC-cc} accepts -pthreads" >&5 +echo "configure:6018: checking whether ${CC-cc} accepts -pthreads" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.10.1/configure.in new/nspr-4.10.2/configure.in --- old/nspr-4.10.1/configure.in 2013-09-22 14:12:37.000000000 +0200 +++ new/nspr-4.10.2/configure.in 2013-11-11 22:54:52.000000000 +0100 @@ -15,7 +15,7 @@ dnl ======================================================== MOD_MAJOR_VERSION=4 MOD_MINOR_VERSION=10 -MOD_PATCH_VERSION=1 +MOD_PATCH_VERSION=2 NSPR_MODNAME=nspr20 _HAVE_PTHREADS= USE_PTHREADS= @@ -1956,6 +1956,17 @@ PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952" PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" + if test "$MSC_VER" -ge "1800"; then + dnl Visual C++ 2013 requires -FS when parallel building with + dnl make -jN. If not specified, compiler sometimes emits C1041 + dnl error. + CFLAGS="$CFLAGS -FS" + dnl -Gw can benefit when using linker optimization on PGO. + dnl http://blogs.msdn.com/b/vcblog/archive/2013/09/11/introducing-gw-compiler-switch.aspx + PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw" + PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw" + fi + if test -z "$MOZ_OPTIMIZE"; then CFLAGS="$CFLAGS -Od" fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.10.1/lib/ds/plarena.c new/nspr-4.10.2/lib/ds/plarena.c --- old/nspr-4.10.1/lib/ds/plarena.c 2013-09-22 14:12:37.000000000 +0200 +++ new/nspr-4.10.2/lib/ds/plarena.c 2013-11-11 22:52:33.000000000 +0100 @@ -153,7 +153,7 @@ { a = pool->current; do { - if ( a->avail +nb <= a->limit ) { + if ( nb <= a->limit - a->avail ) { pool->current = a; rp = (char *)a->avail; a->avail += nb; @@ -171,7 +171,7 @@ return(0); for ( a = arena_freelist, p = NULL; a != NULL ; p = a, a = a->next ) { - if ( a->base +nb <= a->limit ) { + if ( nb <= a->limit - a->base ) { if ( p == NULL ) arena_freelist = a->next; else @@ -196,8 +196,12 @@ /* 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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.10.1/pr/include/prinit.h new/nspr-4.10.2/pr/include/prinit.h --- old/nspr-4.10.1/pr/include/prinit.h 2013-09-22 14:12:37.000000000 +0200 +++ new/nspr-4.10.2/pr/include/prinit.h 2013-11-11 22:54:52.000000000 +0100 @@ -31,10 +31,10 @@ ** The format of the version string is ** "<major version>.<minor version>[.<patch level>] [<Beta>]" */ -#define PR_VERSION "4.10.1" +#define PR_VERSION "4.10.2" #define PR_VMAJOR 4 #define PR_VMINOR 10 -#define PR_VPATCH 1 +#define PR_VPATCH 2 #define PR_BETA PR_FALSE /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.10.1/pr/src/pthreads/ptio.c new/nspr-4.10.2/pr/src/pthreads/ptio.c --- old/nspr-4.10.1/pr/src/pthreads/ptio.c 2013-09-22 14:12:37.000000000 +0200 +++ new/nspr-4.10.2/pr/src/pthreads/ptio.c 2013-11-11 22:52:33.000000000 +0100 @@ -4586,7 +4586,7 @@ if (!_pr_initialized) _PR_ImplicitInitialization(); fd = pt_SetMethods(osfd, PR_DESC_SOCKET_UDP, PR_FALSE, PR_TRUE); - if (NULL != fd) close(osfd); + if (NULL == fd) close(osfd); return fd; } /* PR_ImportUDPSocket */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.10.1/pr/tests/vercheck.c new/nspr-4.10.2/pr/tests/vercheck.c --- old/nspr-4.10.1/pr/tests/vercheck.c 2013-09-22 14:12:37.000000000 +0200 +++ new/nspr-4.10.2/pr/tests/vercheck.c 2013-11-11 22:54:52.000000000 +0100 @@ -20,9 +20,9 @@ #include <stdlib.h> /* - * This release (4.10.1) is backward compatible with the + * This release (4.10.2) 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.x, and 4.10 releases. + * 4.8.x, 4.9.x, 4.10, and 4.10.1 releases. * It, of course, is compatible with itself. */ static char *compatible_version[] = { @@ -37,7 +37,7 @@ "4.8.6", "4.8.7", "4.8.8", "4.8.9", "4.9", "4.9.1", "4.9.2", "4.9.3", "4.9.4", "4.9.5", "4.9.6", - "4.10", + "4.10", "4.10.1", PR_VERSION }; @@ -53,7 +53,7 @@ "3.0", "3.0.1", "3.1", "3.1.1", "3.1.2", "3.1.3", "3.5", "3.5.1", - "4.10.2", + "4.10.3", "4.11", "4.11.1", "10.0", "11.1", "12.14.20" }; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
