[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sot/source

Michael Meeks michael at kemper.freedesktop.org
Thu Jul 7 04:55:25 PDT 2011


 sot/source/sdstor/stgstrms.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3e89e510bf9974f75a81baf13dc59f6e137ec9a9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Jul 3 12:30:00 2011 +0100

    Related: #i46388# busted ole2 wrapper
    
    Signed-off-by: Michael Meeks <michael.meeks at novell.com>

diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index 495748a..79590bf 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -798,7 +798,7 @@ void* StgDataStrm::GetPtr( sal_Int32 Pos, sal_Bool bForce, sal_Bool bDirty )
     if( Pos2Page( Pos ) )
     {
         StgPage* pPg = rIo.Get( nPage, bForce );
-        if( pPg )
+        if (pPg && nOffset < pPg->GetSize())
         {
             pPg->SetOwner( pEntry );
             if( bDirty )


More information about the Libreoffice-commits mailing list