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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 24 11:58:53 UTC 2021


 filter/source/msfilter/svdfppt.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fd5b28d4bfef32a6bd63d963d16753c7ef985ec5
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Sep 24 08:53:18 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 24 13:58:17 2021 +0200

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

diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 93b3f6bd4b33..3762f78ff80a 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -3853,11 +3853,11 @@ void PPTCharSheet::Read( SvStream& rIn, sal_uInt32 nLevel)
     // character attributes
     sal_uInt32 nCMask(0);
     sal_uInt16 nVal16;
-    rIn.ReadUInt32( nCMask );
+    rIn.ReadUInt32(nCMask);
 
     if ( nCMask & 0x0000FFFF )
     {
-        sal_uInt16 nBitAttr;
+        sal_uInt16 nBitAttr(0);
         maCharLevel[ nLevel ].mnFlags &= ~static_cast<sal_uInt16>(nCMask);
         rIn.ReadUInt16( nBitAttr ); // Bit attributes (bold, underlined, ...)
         maCharLevel[ nLevel ].mnFlags |= nBitAttr;


More information about the Libreoffice-commits mailing list