sc/source/filter/excel/xilink.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c0a9836edfa8b9a5c313577edcc819632562a5d3
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Sat Nov 23 13:16:44 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Jun 3 22:47:11 2025 +0200

    tdf#163486: PVS V1028 Possible overflow. Consider casting operands,
    
    not the result.
    
    Change-Id: Ib754cbaca045b68651e663df8d7ba21f81da54b3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177117
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/filter/excel/xilink.cxx 
b/sc/source/filter/excel/xilink.cxx
index 987d0185042e..c37e1ecb1488 100644
--- a/sc/source/filter/excel/xilink.cxx
+++ b/sc/source/filter/excel/xilink.cxx
@@ -772,7 +772,7 @@ void XclImpLinkManagerImpl::ReadExternsheet( XclImpStream& 
rStrm )
 {
     sal_uInt16 nXtiCount;
     nXtiCount = rStrm.ReaduInt16();
-    OSL_ENSURE( static_cast< std::size_t >( nXtiCount * 6 ) == 
rStrm.GetRecLeft(), "XclImpLinkManagerImpl::ReadExternsheet - invalid count" );
+    OSL_ENSURE( static_cast< std::size_t >( nXtiCount ) * 6 == 
rStrm.GetRecLeft(), "XclImpLinkManagerImpl::ReadExternsheet - invalid count" );
     nXtiCount = static_cast< sal_uInt16 >( ::std::min< std::size_t >( 
nXtiCount, rStrm.GetRecLeft() / 6 ) );
 
     /*  #i104057# A weird external XLS generator writes multiple EXTERNSHEET

Reply via email to