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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 31 10:30:30 UTC 2021


 hwpfilter/source/htags.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit fc3bacf7e02af57781a9d63581abc96d66d6529f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 30 15:43:37 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 31 12:29:53 2021 +0200

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

diff --git a/hwpfilter/source/htags.cxx b/hwpfilter/source/htags.cxx
index d0a7d772ce15..334e2b0f3b47 100644
--- a/hwpfilter/source/htags.cxx
+++ b/hwpfilter/source/htags.cxx
@@ -32,6 +32,8 @@ bool HyperText::Read(HWPFile& hwpf)
     nRead += hwpf.ReadBlock(macro, 325);
     if (hwpf.Read1b(type))
         ++nRead;
+    else
+        type = 0;
     nRead += hwpf.ReadBlock(reserve, 3);
     if( type == 2 )
     {


More information about the Libreoffice-commits mailing list