Kaydet (Commit) 312a8a32 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz+ubsan: runtime error: left shift cannot be represented in type

Change-Id: Ic153b39475abbd562e4c81b47089ca8280080cff
Reviewed-on: https://gerrit.libreoffice.org/43569Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 143c482b
......@@ -71,8 +71,10 @@ rtl::Reference< StgPage > StgFAT::GetPhysPage( sal_Int32 nByteOff )
sal_Int32 StgFAT::GetNextPage( sal_Int32 nPg )
{
if( nPg >= 0 )
if (nPg >= 0)
{
if (nPg > (SAL_MAX_INT32 >> 2))
return STG_EOF;
rtl::Reference< StgPage > pPg = GetPhysPage( nPg << 2 );
nPg = pPg.is() ? StgCache::GetFromPage( pPg, m_nOffset >> 2 ) : STG_EOF;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment