From b465a67e2e411f295fa8e91ee3289eda8ccba038 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 9 Sep 2021 08:41:42 +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: Iead995bc6c568c9e517c6402e875127343f30651 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121837 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/filter/imet/ios2met.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx index e6d31c5dc86a..9bb3346de56c 100644 --- a/vcl/source/filter/imet/ios2met.cxx +++ b/vcl/source/filter/imet/ios2met.cxx @@ -814,7 +814,7 @@ sal_uInt32 OS2METReader::ReadBigEndian3BytesLong() sal_uInt32 OS2METReader::ReadLittleEndian3BytesLong() { - sal_uInt8 nHi,nMed,nLo; + sal_uInt8 nHi(0), nMed(0), nLo(0); pOS2MET->ReadUChar( nLo ).ReadUChar( nMed ).ReadUChar( nHi ); return ((static_cast(nHi)&0xff)<<16)|((static_cast(nMed)&0xff)<<8)|(static_cast(nLo)&0xff); -- cgit