[Libreoffice-commits] core.git: emfio/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 16 20:08:17 UTC 2021
emfio/source/reader/wmfreader.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d09770aab5b77c8f19da855855558154151ab45b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 16 20:08:55 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 16 22:07:44 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Ib65191933b91b74c6dd03ae3cfaa6e6cf8dd2434
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122210
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx
index d71dbf485710..831a8eb4a837 100644
--- a/emfio/source/reader/wmfreader.cxx
+++ b/emfio/source/reader/wmfreader.cxx
@@ -930,8 +930,8 @@ namespace emfio
case W_META_DIBCREATEPATTERNBRUSH:
{
Bitmap aBmp;
- sal_uInt32 nRed = 0, nGreen = 0, nBlue = 0, nCount = 1;
- sal_uInt16 nStyle, nColorUsage;
+ sal_uInt32 nRed(0), nGreen(0), nBlue(0), nCount(1);
+ sal_uInt16 nStyle(0), nColorUsage(0);
mpInputStream->ReadUInt16( nStyle ).ReadUInt16( nColorUsage );
SAL_INFO( "emfio", "\t\t Style:" << nStyle << ", ColorUsage: " << nColorUsage );
More information about the Libreoffice-commits
mailing list