[Libreoffice-commits] core.git: emfio/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 12 13:36:11 UTC 2021
emfio/source/reader/emfreader.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a7a62232f93a6383700e5473fe0a84f50e3c37b5
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Sep 12 11:21:20 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Sep 12 15:35:37 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I6dc1f110054eefefffd7b58cafa8240a69bb176e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121995
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx
index 45ea81024519..ab4f905990d5 100644
--- a/emfio/source/reader/emfreader.cxx
+++ b/emfio/source/reader/emfreader.cxx
@@ -403,7 +403,7 @@ namespace emfio
void EmfReader::ReadGDIComment(sal_uInt32 nCommentId)
{
- sal_uInt32 nPublicCommentIdentifier;
+ sal_uInt32 nPublicCommentIdentifier(0);
mpInputStream->ReadUInt32(nPublicCommentIdentifier);
SAL_INFO("emfio", "\t\tEMR_COMMENT_PUBLIC, id: 0x" << std::hex << nCommentId << std::dec);
@@ -421,7 +421,7 @@ namespace emfio
SAL_INFO("emfio", "\t\t\t\t\tRight: " << right);
SAL_INFO("emfio", "\t\t\t\t\tBottom: " << bottom);
- sal_uInt32 nDescChars;
+ sal_uInt32 nDescChars(0);
mpInputStream->ReadUInt32(nDescChars);
OUString aDesc;
More information about the Libreoffice-commits
mailing list