From 0652bc404c1a8dedda085a4753b412c8c0e9ea6c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 11 Sep 2021 19:38:07 +0100 Subject: ofz: MemorySanitizer: use-of-uninitialized-value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id142604aca139f0e0a249ba32b6462a2b8db72d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121963 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/filter/ipict/ipict.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'vcl') diff --git a/vcl/source/filter/ipict/ipict.cxx b/vcl/source/filter/ipict/ipict.cxx index cf9b2531e2c6..ca3a7ab0b41a 100644 --- a/vcl/source/filter/ipict/ipict.cxx +++ b/vcl/source/filter/ipict/ipict.cxx @@ -492,14 +492,13 @@ sal_uInt64 PictReader::ReadPixPattern(PictReader::Pattern &pattern) // Here again the attempt to calculate the size of the date to create simple StarView-Styles // from them. Luckily a PixPattern always contains a normal pattern. - sal_uInt64 nDataSize; - sal_uInt16 nPatType; - BitmapEx aBMP; - pPict->ReadUInt16( nPatType ); + sal_uInt16 nPatType(0); + pPict->ReadUInt16(nPatType); if (nPatType==1) { pattern.read(*pPict); + BitmapEx aBMP; nDataSize=ReadPixMapEtc(aBMP,false,true,nullptr,nullptr,false,false); // CHANGEME: use average pixmap colors to update the pattern, ... if (nDataSize!=0xffffffff) nDataSize+=10; -- cgit