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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Sep 7 17:53:48 UTC 2021


 sw/source/filter/ww8/ww8par.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e812693053b18f4d0c6461c4fe8f965ba1695f76
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Sep 7 14:17:17 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Sep 7 19:53:12 2021 +0200

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

diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 08ab320489eb..3f8fbb67d47b 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -6217,9 +6217,9 @@ ErrCode SwWW8ImplReader::LoadDoc(WW8Glossary *pGloss)
                 if (m_pStg && 0xa5ec == nMagic)
                 {
                     sal_uLong nCurPos = m_pStrm->Tell();
-                    if (m_pStrm->Seek(nCurPos + 22))
+                    if (checkSeek(*m_pStrm, nCurPos + 2))
                     {
-                        sal_uInt32 nfcMin;
+                        sal_uInt32 nfcMin(0);
                         m_pStrm->ReadUInt32( nfcMin );
                         if (0x300 != nfcMin)
                             nErrRet = ERR_WW6_NO_WW6_FILE_ERR;


More information about the Libreoffice-commits mailing list