diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-17 10:48:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-17 13:09:56 +0100 |
commit | 84dc0f3dc044ab13e3d8638433d2b5533fc55aa0 (patch) | |
tree | d7bc0295e6ca9966491b2942213f65a96fe06e00 | |
parent | a6b1f367419e2b3645f37b572736f3d504520c16 (diff) |
ofz: Use-of-uninitialized-value
Change-Id: Ic5f41e4f1f6b20a8cd8887807296f33adb48b728
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128496
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | lotuswordpro/source/filter/lwpdrawobj.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx index 808edae43e68..f7bd4f511283 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -1481,7 +1481,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() |