]> git.pld-linux.org Git - packages/libreoffice.git/blame - openoffice-crash-mapmode.patch
- up
[packages/libreoffice.git] / openoffice-crash-mapmode.patch
CommitLineData
f6bd72df 1Index: vcl/source/gdi/mapmod.cxx
2===================================================================
3RCS file: /cvs/gsl/vcl/source/gdi/mapmod.cxx,v
4retrieving revision 1.1.1.1
5diff -u -p -u -r1.1.1.1 mapmod.cxx
6--- vcl/source/gdi/mapmod.cxx 18 Sep 2000 17:05:38 -0000 1.1.1.1
7+++ vcl/source/gdi/mapmod.cxx 12 Sep 2003 16:51:13 -0000
8@@ -144,6 +144,12 @@ static ImplMapMode* ImplGetStaticMapMode
9 static long aStaticImplMapModeAry[(MAP_LASTENUMDUMMY)*sizeof(ImplMapMode)/sizeof(long)];
10 #endif
11
12+ if( eUnit >= MAP_LASTENUMDUMMY )
13+ {
14+ DBG_ASSERTWARNING( bRelMap, "Completely bogus map unit" );
15+ return ((ImplMapMode*)aStaticImplMapModeAry);
16+ }
17+
18 ImplMapMode* pImplMapMode = ((ImplMapMode*)aStaticImplMapModeAry)+eUnit;
19 if ( !pImplMapMode->mbSimple )
20 {
This page took 0.061351 seconds and 4 git commands to generate.