diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-21 11:37:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-21 14:45:32 +0100 |
commit | 587f3f98e1c00112200941750745e638bc830b41 (patch) | |
tree | 07791cbd1e9615c1fde5464d4c038374ee6c8675 /tools | |
parent | 2a82e4cd5e1af0e232b770d7ad04c8dc61b0345d (diff) |
cid#1500555 silence Untrusted loop bound
and others, we're not bothered that the contents of the string might
have been constructed using byte swapping
Change-Id: I0d0c2e0667bf270e2c15624c59312f3f203bb83c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130246
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/stream/stream.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index a40e13d70b82..c567aad82d36 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1850,7 +1850,8 @@ OUString read_uInt16s_ToOUString(SvStream& rStrm, std::size_t nLen) } } - //take ownership of buffer and return, otherwise return empty string + // 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(); } |