ofz#3771 Integer-overflow
Change-Id: Iedc61de56b494d6344490f6d6f712a62b2a12b78 Reviewed-on: https://gerrit.libreoffice.org/43783 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -1534,6 +1534,9 @@ WW8PLCFpcd* WW8ScannerBase::OpenPieceTable( SvStream* pStr, const WW8Fib* pWwF )
|
||||
if ( ((8 > m_pWw8Fib->m_nVersion) && !pWwF->m_fComplex) || !pWwF->m_lcbClx )
|
||||
return nullptr;
|
||||
|
||||
if (pWwF->m_lcbClx < 0)
|
||||
return nullptr;
|
||||
|
||||
WW8_FC nClxPos = pWwF->m_fcClx;
|
||||
|
||||
if (!checkSeek(*pStr, nClxPos))
|
||||
|
Reference in New Issue
Block a user