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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 30 11:13:18 UTC 2021


 lotuswordpro/source/filter/lwpidxmgr.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit a10d8bb18e81414bf49e7ea7a04c172e4b30b9ea
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 30 09:59:06 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Aug 30 13:12:45 2021 +0200

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

diff --git a/lotuswordpro/source/filter/lwpidxmgr.cxx b/lotuswordpro/source/filter/lwpidxmgr.cxx
index f999ec79a23b..504533fb27cc 100644
--- a/lotuswordpro/source/filter/lwpidxmgr.cxx
+++ b/lotuswordpro/source/filter/lwpidxmgr.cxx
@@ -107,9 +107,7 @@ void LwpIndexManager::Read(LwpSvStream* pStrm)
         {
             //Read leaf
             sal_Int64 nPos = m_ChildIndex[k]+LwpSvStream::LWP_STREAM_BASE;
-            sal_Int64 nActualPos = pStrm->Seek(nPos);
-
-            if (nPos != nActualPos)
+            if (!pStrm->CheckSeek(nPos))
                 throw BadSeek();
 
             //Old Code


More information about the Libreoffice-commits mailing list