sfx2/source/doc/oleprops.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 82f027015e9086a29e802ce35722c0c23adf4fd5 Author: Bogdan Buzea <[email protected]> AuthorDate: Sat Nov 23 13:02:26 2024 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Tue Jun 3 22:47:32 2025 +0200 tdf#163486: PVS V1028 Possible overflow. Consider casting operands, not the result. Change-Id: Iade34a0fefe11801166349bcec64136ee108178d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177113 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index 8ba709111fce..09ab312a5652 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -1007,7 +1007,7 @@ void SfxOleSection::ImplSave( SvStream& rStrm ) // write placeholders for property ID/position pairs sal_uInt64 nPropPosPos = rStrm.Tell(); - rStrm.SeekRel( static_cast< sal_sSize >( 8 * nPropCount ) ); + rStrm.SeekRel( static_cast< sal_sSize >(nPropCount) * 8 ); // write dictionary property if( maDictProp.HasPropertyNames() ) @@ -1201,7 +1201,7 @@ void SfxOlePropertySet::ImplSave( SvStream& rStrm ) // write placeholders for section guid/position pairs sal_uInt64 nSectPosPos = rStrm.Tell(); - rStrm.SeekRel( static_cast< sal_sSize >( 20 * nSectCount ) ); + rStrm.SeekRel( static_cast< sal_sSize >(nSectCount) * 20 ); // write sections for (auto const& section : maSectionMap)
