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>
This commit is contained in:
Caolán McNamara
2022-01-17 10:48:12 +00:00
parent a6b1f36741
commit 84dc0f3dc0

View File

@@ -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()