vcl/source/filter/imet/ios2met.cxx |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

New commits:
commit 030bfda5ec47e28bf66aa2176ace3f626794d5b1
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Sep 9 19:48:17 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Sep 9 22:19:55 2021 +0200

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

diff --git a/vcl/source/filter/imet/ios2met.cxx 
b/vcl/source/filter/imet/ios2met.cxx
index 9bb3346de56c..a57267357f21 100644
--- a/vcl/source/filter/imet/ios2met.cxx
+++ b/vcl/source/filter/imet/ios2met.cxx
@@ -240,12 +240,26 @@ struct OSPath
     tools::PolyPolygon aPPoly;
     bool    bClosed;
     bool    bStroke;
+
+    OSPath()
+        : pSucc(nullptr)
+        , nID(0)
+        , bClosed(false)
+        , bStroke(false)
+    {
+    }
 };
 
 struct OSFont {
     OSFont *  pSucc;
     sal_uInt32 nID;
     vcl::Font aFont;
+
+    OSFont()
+        : pSucc(nullptr)
+        , nID(0)
+    {
+    }
 };
 
 struct OSBitmap {

Reply via email to