[Libreoffice-commits] core.git: emfio/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 31 07:56:52 UTC 2021


 emfio/source/reader/wmfreader.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 12b4913b86a3b9ea5882bf57272603064861639e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 30 17:04:44 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 31 09:56:16 2021 +0200

    ofz: MemorySanitizer: use-of-uninitialized-value
    
    Change-Id: I3244f5c83a02f41ec379188b1fedbdd9e511967c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121318
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx
index 4f5606f66aae..afabb795f8e0 100644
--- a/emfio/source/reader/wmfreader.cxx
+++ b/emfio/source/reader/wmfreader.cxx
@@ -600,7 +600,7 @@ namespace emfio
 
             case W_META_RESTOREDC:
             {
-                sal_Int16 nSavedDC;
+                sal_Int16 nSavedDC(0);
                 mpInputStream->ReadInt16( nSavedDC );
                 SAL_INFO( "emfio", "\t\t SavedDC: " << nSavedDC );
                 Pop( nSavedDC );


More information about the Libreoffice-commits mailing list