summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-11 08:50:51 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-11-12 12:53:27 +0100
commit15d66da417068051229e8888e9d776a7514b2a46 (patch)
treef5c89753b480d866f4952a3b393ca5c2121c2316
parent007987ffb7d4de050c3b4fa84b5fae33658a8699 (diff)
cid#1607638 silence Overflowed return value
Change-Id: Ie6f9db4949924a53edd3b0738bee5c21ca6051a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176463 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--sal/osl/unx/pipe.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx
index b683e17b2623..436f3086ded5 100644
--- a/sal/osl/unx/pipe.cxx
+++ b/sal/osl/unx/pipe.cxx
@@ -478,6 +478,7 @@ sal_Int32 SAL_CALL osl_writePipe(oslPipe pPipe, const void *pBuffer, sal_Int32 n
SAL_WARN_IF(!pPipe, "sal.osl.pipe", "osl_writePipe: invalid pipe"); // osl_sendPipe detects invalid pipe
while (BytesToSend > 0)
{
+ // coverity[ tainted_data_return : FALSE ] version 2023.12.2
sal_Int32 RetVal = osl_sendPipe(pPipe, pBuffer, BytesToSend);
/* error occurred? */
if (RetVal <= 0)
@@ -500,6 +501,7 @@ sal_Int32 SAL_CALL osl_readPipe( oslPipe pPipe, void *pBuffer , sal_Int32 n )
SAL_WARN_IF(!pPipe, "sal.osl.pipe", "osl_readPipe: invalid pipe"); // osl_receivePipe detects invalid pipe
while (BytesToRead > 0)
{
+ // coverity[ tainted_data_return : FALSE ] version 2023.12.2
sal_Int32 RetVal = osl_receivePipe(pPipe, pBuffer, BytesToRead);
/* error occurred? */
if (RetVal <= 0)