[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - svtools/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Aug 25 15:36:53 UTC 2021


 svtools/source/svrtf/parrtf.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f1afe20decb818b5f8c3a911d569561ad6fe2f7a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 23 20:21:25 2021 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Aug 25 17:36:19 2021 +0200

    ofz: MemorySanitizer: use-of-uninitialized-value
    
    Change-Id: I69b76dd2aed35fe2038e61eef343ee8d84f053f7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120926
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    (cherry picked from commit 6f790c8b31360463670439e6857ea64f418ddfbd)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120972
    Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
    Tested-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index 8b5ad0a0a7cb..c08e366de943 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -570,7 +570,7 @@ void SvRTFParser::ReadBitmapData()  { SkipGroup(); }
 
 SvParserState SvRTFParser::CallParser()
 {
-    char cFirstCh;
+    char cFirstCh(0);
     nNextChPos = rInput.Tell();
     rInput.ReadChar( cFirstCh );
     nNextCh = static_cast<unsigned char>(cFirstCh);


More information about the Libreoffice-commits mailing list