summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lotuswordpro/source/filter/lwpdrawobj.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx
index 45637de0c32c..7240a57d13b9 100644
--- a/lotuswordpro/source/filter/lwpdrawobj.cxx
+++ b/lotuswordpro/source/filter/lwpdrawobj.cxx
@@ -1457,7 +1457,8 @@ void LwpDrawBitmap::Read()
pPicData += 30*sizeof(sal_uInt8);
}
- m_pStream->ReadBytes(pPicData, nDIBRemaining);
+ if (nDIBRemaining != m_pStream->ReadBytes(pPicData, nDIBRemaining))
+ throw BadRead();
}
OUString LwpDrawBitmap::RegisterStyle()