include/tools/stream.hxx | 1 -
tools/source/stream/stream.cxx | 6 ++++--
2 files changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 50fa3055ad53f9e1f93c90e2119261dc6fa879a2
Author: Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Feb 24 09:49:44 2022 +0000
Commit: Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Feb 24 13:06:40 2022 +0100
cid#1500555 try -taint_source function annotation tag on function body
Change-Id: Iecc87e118e5c5a85ae40e1ae79348883ea328d8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130482
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caol...@redhat.com>
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index cb3d7c7de804..9c9591a86355 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -454,7 +454,6 @@ inline OUString read_uInt8s_ToOUString(SvStream& rStrm,
/// Attempt to read nUnits 16bit units to an OUString, returned
/// OUString's length is number of units successfully read
-// coverity[ -taint_source ]
TOOLS_DLLPUBLIC OUString read_uInt16s_ToOUString(SvStream& rStrm,
std::size_t nUnits);
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 43cdf4eae459..62c9be957c83 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1787,7 +1787,8 @@ void SvMemoryStream::SetSize(sal_uInt64 const nNewSize)
ReAllocateMemory( nDiff );
}
-//Create an OString of nLen bytes from rStream
+// Create an OString of nLen bytes from rStream
+// coverity[ -taint_source ]
OString read_uInt8s_ToOString(SvStream& rStrm, std::size_t nLen)
{
rtl_String *pStr = nullptr;
@@ -1818,7 +1819,8 @@ OString read_uInt8s_ToOString(SvStream& rStrm,
std::size_t nLen)
return pStr ? OString(pStr, SAL_NO_ACQUIRE) : OString();
}
-//Create an OUString of nLen sal_Unicode code units from rStream
+// Create an OUString of nLen sal_Unicode code units from rStream
+// coverity[ -taint_source ]
OUString read_uInt16s_ToOUString(SvStream& rStrm, std::size_t nLen)
{
rtl_uString *pStr = nullptr;