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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 24 07:36:47 UTC 2021


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

New commits:
commit 6f790c8b31360463670439e6857ea64f418ddfbd
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 23 20:21:25 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 24 09:36:10 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>

diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index a11ec870cf4b..cbd3a97aad63 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -572,7 +572,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