diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-30 09:59:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-30 13:12:45 +0200 |
commit | a10d8bb18e81414bf49e7ea7a04c172e4b30b9ea (patch) | |
tree | dca629d718ebdabf594b26f267373582cfb7a293 /lotuswordpro/source | |
parent | 6669c1a06bcc3ce31c9c17c714fdf2c2e0e25360 (diff) |
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@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpidxmgr.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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 |