summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpdrawobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source/filter/lwpdrawobj.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpdrawobj.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx
index 04acb795e631..a12bfa270a40 100644
--- a/lotuswordpro/source/filter/lwpdrawobj.cxx
+++ b/lotuswordpro/source/filter/lwpdrawobj.cxx
@@ -1050,9 +1050,9 @@ void LwpDrawTextBox::Read()
sal_Int16 TextLength = m_aObjHeader.nRecLen - 71;
if (TextLength < 0)
throw BadRead();
- m_aTextRec.pTextString = new sal_uInt8 [TextLength];
-
- m_pStream->ReadBytes(m_aTextRec.pTextString, TextLength);
+ m_aTextRec.pTextString = new sal_uInt8[TextLength];
+ if (m_pStream->ReadBytes(m_aTextRec.pTextString, TextLength) != o3tl::make_unsigned(TextLength))
+ throw BadRead();
}
OUString LwpDrawTextBox::RegisterStyle()