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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Sep 5 12:32:52 UTC 2021


 sc/source/filter/lotus/lotread.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ce0229a9a5cb9c375c64dc4bc2bfafb5446f57c4
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Sep 5 09:20:42 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Sep 5 14:32:18 2021 +0200

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

diff --git a/sc/source/filter/lotus/lotread.cxx b/sc/source/filter/lotus/lotread.cxx
index f28a783849fb..240ac323cebb 100644
--- a/sc/source/filter/lotus/lotread.cxx
+++ b/sc/source/filter/lotus/lotread.cxx
@@ -41,7 +41,6 @@ ErrCode ImportLotus::parse()
     };
 
     sal_uInt16          nOp;
-    sal_uInt16          nSubType;
     sal_uInt16          nRecLen;
     sal_uInt32          nNextRec = 0;
     ErrCode        eRet = ERRCODE_NONE;
@@ -158,6 +157,7 @@ ErrCode ImportLotus::parse()
                 case 0x001b:                            // extended attributes
                 if (nRecLen > 2)
                 {
+                    sal_uInt16 nSubType(0);
                     Read( nSubType );
                     nRecLen -= 2;
                     switch( nSubType )


More information about the Libreoffice-commits mailing list