summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-03 09:50:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-03 16:49:27 +0200
commitaeccf731466bc44ce750bbeb8a86ccf309a12027 (patch)
treec17e86aa8d40646f94aa844f0c0e56ecec8abf2e
parentfae7e172e2f7585ed633c9c6328fd25e2f5dd6df (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I626eb1847484f7bc6af7eed45b891307718c5263 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121596 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--emfio/source/reader/emfreader.cxx4
1 files 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);