diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-07 14:17:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-07 19:53:12 +0200 |
commit | e812693053b18f4d0c6461c4fe8f965ba1695f76 (patch) | |
tree | a3a08a32632bc38baa52afb8327a722c8e81f22a | |
parent | 992f878e8c3424f7ce96a78ccf3a316b29ffd9ec (diff) |
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@redhat.com>
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |