summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-17 10:48:12 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2022-01-18 11:28:40 +0100
commitc517c71a52ba9f35df42b501c5b17362528f8b03 (patch)
treea749def9b123a6266646db32b64bccdc74a98d3c
parenttdf#146515 export "Use printer metrics for document formatting" to docx (diff)
downloadcore-c517c71a52ba9f35df42b501c5b17362528f8b03.tar.gz
core-c517c71a52ba9f35df42b501c5b17362528f8b03.zip
ofz: Use-of-uninitialized-value
Change-Id: Ic5f41e4f1f6b20a8cd8887807296f33adb48b728 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128438 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-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 558b923a3ad7..dbd906a5c0bd 100644
--- a/lotuswordpro/source/filter/lwpdrawobj.cxx
+++ b/lotuswordpro/source/filter/lwpdrawobj.cxx
@@ -1479,7 +1479,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()