summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-03 12:30:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-03 12:30:00 +0100
commitd8ba18651cdca6037ee187b586d3c309a9db3528 (patch)
tree7119d7bf6066a4970fc22e306e140449c9a695f9 /sot
parent23a90a9923ea81865de56010f962d190958c57d3 (diff)
Related: #i46388# busted ole2 wrapper
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgstrms.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index fe40be155b9e..48e8de3ede6d 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 )