Hello community, here is the log from the commit of package nvu checked in at Thu May 31 21:08:13 CEST 2007. -------- --- nvu/nvu.changes 2007-05-10 23:50:09.000000000 +0200 +++ /mounts/work_src_done/STABLE/nvu/nvu.changes 2007-05-31 16:00:54.000000000 +0200 @@ -1,0 +2,6 @@ +Thu May 31 16:00:08 CEST 2007 - sbrabec@suse.cz + +- Fixed undefined behavior of code and undefined variables. +- Build everything with RPM_OPT_FLAGS. + +------------------------------------------------------------------- New: ---- nvu-undefined-operation.patch nvu-uninitialized-variable.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nvu.spec ++++++ --- /var/tmp/diff_new_pack.St8032/_old 2007-05-31 21:08:01.000000000 +0200 +++ /var/tmp/diff_new_pack.St8032/_new 2007-05-31 21:08:01.000000000 +0200 @@ -15,7 +15,7 @@ %define NVU 1 License: GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL) Version: 1.0 -Release: 53 +Release: 54 Summary: Web Authoring System URL: http://www.nvu.com/ Group: Productivity/Publishing/HTML/Editors @@ -30,6 +30,9 @@ Patch5: gtk.patch Patch6: nvu-implicit_decl.patch Patch7: dumpstack.patch +Patch8: nvu-undefined-operation.patch +Patch9: nvu-uninitialized-variable.patch +%define _use_internal_dependency_generator 0 %define my_provides %{_builddir}/%{?buildsubdir}/my-provides %define my_requires %{_builddir}/%{?buildsubdir}/my-requires AutoReqProv: on @@ -80,10 +83,15 @@ %patch5 %patch6 %patch7 +%patch8 +%patch9 cp composer/config/mozconfig.linux .mozconfig echo "ac_add_options --with-system-nspr" >>.mozconfig echo "export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"" >>.mozconfig echo "export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"" >>.mozconfig +echo "export HOST_CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"" >>.mozconfig +echo "export HOST_CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"" >>.mozconfig +echo "ac_add_option --enable-optimize="$CFLAGS"" >>.mozconfig %build export LDFLAGS=-L/usr/X11R6/%_lib @@ -92,6 +100,8 @@ # Work around make -j running ./configure twice make -f client.mk %_builddir/mozilla/Makefile make -f client.mk %_builddir/mozilla/config.status +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" make -f client.mk build_all %{?jobs:-j%jobs} %install @@ -137,6 +147,9 @@ /usr/share/*/nvu.* %changelog +* Thu May 31 2007 - sbrabec@suse.cz +- Fixed undefined behavior of code and undefined variables. +- Build everything with RPM_OPT_FLAGS. * Thu May 10 2007 - ro@suse.de - added unzip to buildrequires * Mon Nov 13 2006 - sbrabec@suse.cz ++++++ nvu.desktop ++++++ --- nvu/nvu.desktop 2006-02-15 16:18:29.000000000 +0100 +++ /mounts/work_src_done/STABLE/nvu/nvu.desktop 2007-05-31 16:11:35.000000000 +0200 @@ -3,7 +3,7 @@ GenericName=Web Authoring System TryExec=nvu Exec=nvu %u -Icon=nvu.png +Icon=nvu Terminal=false MimeType=text/html;application/xhtml+xml Type=Application ++++++ nvu-undefined-operation.patch ++++++ --- layout/html/style/src/nsCSSRendering.cpp +++ layout/html/style/src/nsCSSRendering.cpp @@ -979,14 +979,14 @@ FillOrInvertRect(aContext, dashRect.x, borderOutside.y,dashRect.width, dashRect.height-adjust,isInvert); FillOrInvertRect(aContext,dashRect.x,(borderOutside.YMost()-(dashRect.height-adjust)),dashRect.width, dashRect.height-adjust,isInvert); currRect.y += (dashRect.height-adjust); - temp = temp-= (dashRect.height-adjust); + temp -= (dashRect.height-adjust); } else { adjust = (temp%dashRect.width)/2; // adjust a tad longer // draw in the left and right FillOrInvertRect(aContext, dashRect.x, borderOutside.y,dashRect.width, dashRect.height+adjust,isInvert); FillOrInvertRect(aContext, dashRect.x,(borderOutside.YMost()-(dashRect.height+adjust)),dashRect.width, dashRect.height+adjust,isInvert); currRect.y += (dashRect.height+adjust); - temp = temp-= (dashRect.height+adjust); + temp-= (dashRect.height+adjust); } if( temp > ywidth) @@ -1045,14 +1045,14 @@ FillOrInvertRect(aContext, borderOutside.x,dashRect.y,dashRect.width-adjust,dashRect.height,isInvert); FillOrInvertRect(aContext, (borderOutside.XMost()-(dashRect.width-adjust)),dashRect.y,dashRect.width-adjust,dashRect.height,isInvert); currRect.x += (dashRect.width-adjust); - temp = temp-= (dashRect.width-adjust); + temp-= (dashRect.width-adjust); } else { adjust = (temp%dashRect.width)/2; // draw in the left and right FillOrInvertRect(aContext, borderOutside.x,dashRect.y,dashRect.width+adjust,dashRect.height,isInvert); FillOrInvertRect(aContext, (borderOutside.XMost()-(dashRect.width+adjust)),dashRect.y,dashRect.width+adjust,dashRect.height,isInvert); currRect.x += (dashRect.width+adjust); - temp = temp-= (dashRect.width+adjust); + temp-= (dashRect.width+adjust); } --- netwerk/cache/src/nsDiskCacheMap.h +++ netwerk/cache/src/nsDiskCacheMap.h @@ -145,7 +145,7 @@ // set blockCount NS_ASSERTION( (blockCount>=1) && (blockCount<=4),"invalid block count"); - blockCount = --blockCount; + --blockCount; mDataLocation |= (blockCount << eExtraBlocksOffset) & eExtraBlocksMask; mDataLocation |= eLocationInitializedMask; @@ -214,7 +214,7 @@ // set blockCount NS_ASSERTION( (blockCount>=1) && (blockCount<=4),"invalid block count"); - blockCount = --blockCount; + --blockCount; mMetaLocation |= (blockCount << eExtraBlocksOffset) & eExtraBlocksMask; mMetaLocation |= eLocationInitializedMask; ++++++ nvu-uninitialized-variable.patch ++++++ --- js/src/fdlibm/e_rem_pio2.c +++ js/src/fdlibm/e_rem_pio2.c @@ -126,7 +126,8 @@ #endif { fd_twoints u, ux, uz; - double z,w,t,r,fn; + double z = 0; + double w,t,r,fn; double tx[3]; int e0,i,j,nx,n,ix,hx; --- js/src/fdlibm/k_cos.c +++ js/src/fdlibm/k_cos.c @@ -107,7 +107,8 @@ #endif { fd_twoints u; - double a,hz,z,r,qx; + double qx = 0; + double a,hz,z,r; int ix; u.d = x; ix = __HI(u)&0x7fffffff; /* ix = |x|'s high word*/ --- js/src/jsdtoa.c +++ js/src/jsdtoa.c @@ -989,7 +989,7 @@ static double ulp(double x) { register Long L; - double a; + double a = 0; L = (word0(x) & Exp_mask) - (P-1)*Exp_msk1; #ifndef Sudden_Underflow @@ -1020,7 +1020,7 @@ { ULong *xa, *xa0, w, y, z; int32 k; - double d; + double d = 0; #define d0 word0(d) #define d1 word1(d) #define set_d0(x) set_word0(d, x) @@ -1836,6 +1836,7 @@ } #ifdef Avoid_Underflow if (scale) { + rv0 = 0.; set_word0(rv0, Exp_1 - P*Exp_msk1); set_word1(rv0, 0); if ((word0(rv) & Exp_mask) <= P*Exp_msk1 --- layout/html/base/src/nsObjectFrame.cpp +++ layout/html/base/src/nsObjectFrame.cpp @@ -1969,7 +1969,7 @@ * problems with plugins implementing the new API. See bug 234470 and * bug 261589. */ - + rv = NULL; #else // Windows and non-UNIX, non-Mac(Classic) cases // we need the native printer device context to pass to plugin ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de