Issue 6442

Summary: Printing crash on Linux
Product: gsl Reporter: samphan
Component: codeAssignee: christof.pintaske
Status: CLOSED FIXED QA Contact: issues@gsl <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.0.0   
Target Milestone: next build   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description samphan 2002-07-15 16:29:56 UTC
Prining some Writer files on Linux will crash due to int overflow in
vcl/source/gdi/outdev3.cxx result in infinite recursion.
The following patch disable such spot and solve the problem for us.

diff -urdP -X srcdiff.txt ../oo_1.0_src.orig/./vcl/source/gdi/outdev3.cxx
./vcl/source/gdi/outdev3.cxx
--- ../oo_1.0_src.orig/./vcl/source/gdi/outdev3.cxx	Fri Feb 15 18:44:52 2002
+++ ./vcl/source/gdi/outdev3.cxx	Thu Jun 27 16:57:43 2002
@@ -3963,7 +4156,7 @@
 
     if ( pOldEntry )
         mpFontCache->Release( pOldEntry );
-
+#if 0 //!! this crash on Linux, due to int overflow (too large number wrap to
negative)
     // #95414# fix for OLE objects which use scale factors very creatively
     if( mbMap && !aSize.Width() )
     {
@@ -3979,7 +4172,7 @@
             ImplNewFont();  // recurse once using stretched width
         }
     }
-
+#endif
     return TRUE;
 }
Comment 1 hdu@apache.org 2002-07-16 10:29:41 UTC
This stack overflow is already fixed on OOo 1.0.1 by 
http://www.openoffice.org/unbranded-source/browse/gsl/vcl/source/gdi/outdev3.cxx.diff?r1=1.75&r2=1.75.4.1 
 
Comment 2 christof.pintaske 2002-11-04 12:53:03 UTC
closed