diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-17 10:48:12 +0000 |
---|---|---|
committer | Gabor Kelemen <kelemeng@ubuntu.com> | 2022-04-02 13:31:49 +0200 |
commit | 35562b809a3207a3ff9b2d700e2ea6c285992320 (patch) | |
tree | c01e002aeddda7a624e3c8c8beed48d2e38ac2e2 /lotuswordpro | |
parent | 48d85fd4db95939597b66da2f32bc5f024686518 (diff) |
ofz: Use-of-uninitialized-value
Change-Id: Ic5f41e4f1f6b20a8cd8887807296f33adb48b728
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128439
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit bb03203848ef1c30786ad084440b5d317a466127)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129415
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
(cherry picked from commit b3288c52844bec9e33a7ae725332f95c84384ac7)
Diffstat (limited to 'lotuswordpro')
-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 cd25e50bb93b..6dc6fb2b9220 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -1461,7 +1461,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() |