summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-02 16:48:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-03 10:02:01 +0200
commitce20a690c8e72b0d15ca5cfdc2241a7076dd8124 (patch)
treeb5db0af1a23638a868f8137a1adb7b3f44d2fba9 /emfio
parent58364e04cc4c5451af2086bdb01145ec89da2b8e (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I7cd46af148471de516860046c04f71b6ae5fea89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121522 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio')
-rw-r--r--emfio/source/reader/emfreader.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx
index 15ea08f8d51c..45e50a90d7d4 100644
--- a/emfio/source/reader/emfreader.cxx
+++ b/emfio/source/reader/emfreader.cxx
@@ -470,28 +470,28 @@ namespace emfio
}
// Read the first EmrFormat.
- sal_uInt32 nSignature;
+ sal_uInt32 nSignature(0);
mpInputStream->ReadUInt32(nSignature);
if (nSignature != PDF_SIGNATURE)
{
return;
}
- sal_uInt32 nVersion;
+ sal_uInt32 nVersion(0);
mpInputStream->ReadUInt32(nVersion);
if (nVersion != 1)
{
return;
}
- sal_uInt32 nSizeData;
+ sal_uInt32 nSizeData(0);
mpInputStream->ReadUInt32(nSizeData);
if (!nSizeData || nSizeData > mpInputStream->remainingSize())
{
return;
}
- sal_uInt32 nOffData;
+ sal_uInt32 nOffData(0);
mpInputStream->ReadUInt32(nOffData);
if (!nOffData)
{