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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Sep 19 12:26:30 UTC 2021


 vcl/source/filter/ipict/ipict.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1875d8a934bb95a4fb7343dd776845c6606c74bb
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Sep 19 12:29:26 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Sep 19 14:25:58 2021 +0200

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

diff --git a/vcl/source/filter/ipict/ipict.cxx b/vcl/source/filter/ipict/ipict.cxx
index 1adc05b7b69a..6f4eaf632ed3 100644
--- a/vcl/source/filter/ipict/ipict.cxx
+++ b/vcl/source/filter/ipict/ipict.cxx
@@ -1366,7 +1366,7 @@ sal_uInt64 PictReader::ReadData(sal_uInt16 nOpcode)
         break;
     }
     case 0x0004: {  // TxFace
-        char nFace;
+        char nFace(0);
         pPict->ReadChar( nFace );
         if ( (nFace & 0x01)!=0 ) aActFont.SetWeight(WEIGHT_BOLD);
         else                     aActFont.SetWeight(WEIGHT_NORMAL);


More information about the Libreoffice-commits mailing list