[Libreoffice-commits] core.git: emfio/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 3 14:50:00 UTC 2021
emfio/source/reader/emfreader.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit aeccf731466bc44ce750bbeb8a86ccf309a12027
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Sep 3 09:50:57 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 3 16:49:27 2021 +0200
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 at redhat.com>
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);
More information about the Libreoffice-commits
mailing list