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;