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 <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-02-24 09:49:44 +00:00
parent bba6fad408
commit 50fa3055ad
2 changed files with 4 additions and 3 deletions

View file

@ -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);

View file

@ -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;