include/tools/stream.hxx | 1 + tools/source/stream/stream.cxx | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
New commits: commit d4ec94c90a195a34e19f8a7af48424a14f7cf227 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Feb 23 11:13:59 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Feb 23 14:56:32 2022 +0100 cid#1500555 try -taint_source function annotation tag Change-Id: I237a22968024814d578d387e99ae96b748382e00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130433 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index 9c9591a86355..cb3d7c7de804 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -454,6 +454,7 @@ 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 c567aad82d36..43cdf4eae459 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1851,7 +1851,6 @@ OUString read_uInt16s_ToOUString(SvStream& rStrm, std::size_t nLen) } // take ownership of buffer and return, otherwise return empty string - // coverity[return_tainted_data : SUPPRESS] - we consider the string untainted at this point return pStr ? OUString(pStr, SAL_NO_ACQUIRE) : OUString(); }