sd/source/ui/remotecontrol/BufferedStreamSocket.cxx |    3 +++
 sd/source/ui/unoidl/unopage.cxx                     |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 557b2dcb3ca5d86f411ae89969aec397bad3ec0c
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Nov 9 20:35:00 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Nov 11 11:15:28 2024 +0100

    cid#1607564 silence Overflowed integer argument
    
    Change-Id: Ib008987be1102782fd92214ae8bf35f8f862d2a4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176381
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx 
b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
index e2fe96fc383e..2834bb74a9f9 100644
--- a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
+++ b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
@@ -107,7 +107,10 @@ sal_Int32 BufferedStreamSocket::readLine( OString& aLine )
 
         sal_Int32 nRet;
         if (!usingCSocket)
+        {
+            // coverity[ tainted_data_return : FALSE ] version 2023.12.2
             nRet = StreamSocket::recv( &aBuffer[aRead], 100 );
+        }
         else
             nRet = ::recv( mSocket, &aBuffer[aRead], 100, 0 );
 
commit 8bf5fa407e00f0a5c271a6e3d7b91330797c2726
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Nov 9 20:41:29 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Nov 11 11:15:19 2024 +0100

    cid#1607838 silence Overflowed constant
    
    Change-Id: I4201afc8ee115200f47de4e7b7974f82735a1f01
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176380
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index c3d60bd59daf..8183d6cfbfe6 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -2306,7 +2306,7 @@ void SAL_CALL SdDrawPage::setName( const OUString& rName )
 
     GetPage()->SetName( aName );
 
-    sal_uInt16 nNotesPageNum = (GetPage()->GetPageNum()-1)>>1;
+    sal_uInt16 nNotesPageNum = static_cast<sal_uInt16>( ( 
GetPage()->GetPageNum() - 1 ) >> 1 );
     if( GetModel()->GetDoc()->GetSdPageCount( PageKind::Notes ) > 
nNotesPageNum )
     {
         SdPage* pNotesPage = GetModel()->GetDoc()->GetSdPage( nNotesPageNum, 
PageKind::Notes );

Reply via email to