Issue 6442 - Printing crash on Linux
Summary: Printing crash on Linux
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: next build
Assignee: christof.pintaske
QA Contact: issues@gsl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-15 16:29 UTC by samphan
Modified: 2002-11-04 12:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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