rpms/openoffice.org/F-7 openoffice.org-2.2.1.oooXXXXX.xmloff.outofrange.patch, NONE, 1.1 openoffice.org.spec, 1.1183, 1.1184

Caolan McNamara (caolanm) fedora-extras-commits at redhat.com
Fri Jun 15 10:02:23 UTC 2007


Author: caolanm

Update of /cvs/pkgs/rpms/openoffice.org/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21286

Modified Files:
	openoffice.org.spec 
Added Files:
	openoffice.org-2.2.1.oooXXXXX.xmloff.outofrange.patch 
Log Message:
Resolves: rhbz#242692 openoffice.org-2.2.1.oooXXXXX.xmloff.outofrange.patch

openoffice.org-2.2.1.oooXXXXX.xmloff.outofrange.patch:

--- NEW FILE openoffice.org-2.2.1.oooXXXXX.xmloff.outofrange.patch ---
Index: source/draw/ximpshap.cxx
===================================================================
RCS file: /cvs/xml/xmloff/source/draw/ximpshap.cxx,v
retrieving revision 1.117.8.1
diff -u -r1.117.8.1 ximpshap.cxx
--- openoffice.org.orig/xmloff/source/draw/ximpshap.cxx	12 Apr 2007 17:17:24 -0000	1.117.8.1
+++ openoffice.org/xmloff/source/draw/ximpshap.cxx	15 Jun 2007 09:43:30 -0000
@@ -615,6 +615,10 @@
 		{
 			::basegfx::B2DHomMatrix aTransformation;
 
+                	DBG_ASSERT(maSize.Height < SAL_MAX_INT32/2 && maSize.Width < SAL_MAX_INT32/2, "unlikely shape size");
+			if (maSize.Height > SAL_MAX_INT32/2 || maSize.Width > SAL_MAX_INT32/2)
+				maSize.Width = maSize.Height = 1;
+
 			if(maSize.Width != 1 || maSize.Height != 1)
 			{
 				// take care there are no zeros used by error
Index: source/sdr/contact/viewobjectcontact.cxx
===================================================================
RCS file: /cvs/graphics/svx/source/sdr/contact/viewobjectcontact.cxx,v
retrieving revision 1.13
diff -u -r1.13 viewobjectcontact.cxx
--- openoffice.org.orig/svx/source/sdr/contact/viewobjectcontact.cxx	14 Nov 2006 13:32:04 -0000	1.13
+++ openoffice.org/svx/source/sdr/contact/viewobjectcontact.cxx	15 Jun 2007 09:43:46 -0000
@@ -376,13 +376,20 @@
 			// handle paint of ViewObjectContact
 			if(GetViewContact().ShouldPaintObject(rDisplayInfo, *this) && rDisplayInfo.DoContinuePaint())
 			{
-				if(pRedirector)
+				try
 				{
-					pRedirector->PaintObject(*this, rDisplayInfo);
+  					if(pRedirector)
+					{ 
+						pRedirector->PaintObject(*this, rDisplayInfo);
+					}
+					else
+					{
+						PaintObject(rDisplayInfo);
+					}
 				}
-				else
+				catch ( ... )
 				{
-					PaintObject(rDisplayInfo);
+                	DBG_ASSERT(0, "failed to paint object");
 				}
 			}
 


Index: openoffice.org.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org/F-7/openoffice.org.spec,v
retrieving revision 1.1183
retrieving revision 1.1184
diff -u -r1.1183 -r1.1184
--- openoffice.org.spec	13 Jun 2007 13:49:31 -0000	1.1183
+++ openoffice.org.spec	15 Jun 2007 10:01:45 -0000	1.1184
@@ -138,6 +138,7 @@
 Patch79: openoffice.org-2.2.1.ooo78198.sixtyfour.svx.patch
 Patch80: openoffice.org-2.2.1.ooo78383.vcl.printxerror.patch
 Patch81: openoffice.org-2.2.1.ooo78392.sixtyfour.tools.patch
+Patch82: openoffice.org-2.2.1.oooXXXXX.xmloff.outofrange.patch
 
 %define instdir %{_libdir}/openoffice.org
 
@@ -1069,6 +1070,7 @@
 %patch79 -p1 -b .ooo78198.sixtyfour.svx.patch
 %patch80 -p1 -b .ooo78383.vcl.printxerror.patch
 %patch81 -p1 -b .ooo78392.sixtyfour.tools.patch
+%patch82 -p1 -b .oooXXXXX.xmloff.outofrange.patch
 
 cp %{SOURCE1} extras/source/database/evolocal.odb
 
@@ -2648,6 +2650,7 @@
 %changelog
 * Wed Jun 13 2007 Caolan McNamara <caolanm at redhat.com> - 1:2.2.0-14.12.UNRELEASED
 - Resolves: rhbz#243904 openoffice.org-2.2.1.ooo78383.vcl.printxerror.patch
+- Resolves: rhbz#242692 openoffice.org-2.2.1.oooXXXXX.xmloff.outofrange.patch
 - add openoffice.org-2.2.1.ooo78392.sixtyfour.tools.patch
 
 * Fri Jun 07 2007 Caolan McNamara <caolanm at redhat.com> - 1:2.2.0-14.11




More information about the scm-commits mailing list