From aeccf731466bc44ce750bbeb8a86ccf309a12027 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 3 Sep 2021 09:50:57 +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: I626eb1847484f7bc6af7eed45b891307718c5263 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121596 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- emfio/source/reader/emfreader.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx index 68ff6752b69d..b5b86ef894a2 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -462,7 +462,7 @@ namespace emfio { tools::Rectangle aOutputRect = EmfReader::ReadRectangle(); - sal_uInt32 nCountFormats; + sal_uInt32 nCountFormats(0); mpInputStream->ReadUInt32(nCountFormats); if (nCountFormats < 1) { @@ -2325,7 +2325,7 @@ namespace emfio tools::Rectangle EmfReader::ReadRectangle() { - sal_Int32 nLeft, nTop, nRight, nBottom; + sal_Int32 nLeft(0), nTop(0), nRight(0), nBottom(0); mpInputStream->ReadInt32(nLeft); mpInputStream->ReadInt32(nTop); mpInputStream->ReadInt32(nRight); -- cgit