[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Aug 29 20:12:25 UTC 2021
vcl/source/filter/itiff/ccidecom.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d350a1364a1c34b96d00f2f716c44882b7b57fe9
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Aug 29 15:18:08 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Aug 29 22:11:51 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Ic07027c4bca00df823ac06066b25606a65fe1e4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121226
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/filter/itiff/ccidecom.cxx b/vcl/source/filter/itiff/ccidecom.cxx
index 407aab17d669..a1dbd8256201 100644
--- a/vcl/source/filter/itiff/ccidecom.cxx
+++ b/vcl/source/filter/itiff/ccidecom.cxx
@@ -795,7 +795,7 @@ bool CCIDecompressor::Read2DTag()
{
// read a bit and return sal_True if it's 0, otherwise return sal_False
if (nInputBitsBufSize==0) {
- sal_uInt8 nByte;
+ sal_uInt8 nByte(0);
pIStream->ReadUChar( nByte );
if ( nOptions & CCI_OPTION_INVERSEBITORDER )
nByte = pByteSwap[ nByte ];
@@ -811,7 +811,7 @@ sal_uInt8 CCIDecompressor::ReadBlackOrWhite()
{
// read a bit and deliver 0x00 if it's 0, otherwise 0xff
if (nInputBitsBufSize==0) {
- sal_uInt8 nByte;
+ sal_uInt8 nByte(0);
pIStream->ReadUChar( nByte );
if ( nOptions & CCI_OPTION_INVERSEBITORDER )
nByte = pByteSwap[ nByte ];
More information about the Libreoffice-commits
mailing list