tools/source/stream/stream.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1ad7fe75cccafed2be3cd6628b931762067a56e8
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Aug 28 14:40:05 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Aug 28 17:32:30 2022 +0200

    cid#1500491 silence Untrusted loop bound
    
    Change-Id: I508337b8a8482b5aaa056a564a0dfa39cbbb4b56
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138943
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index fd4ce602ca99..1c6bf5e32dcc 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1868,6 +1868,7 @@ OUString read_uInt16s_ToOUString(SvStream& rStrm, 
std::size_t nLen)
     }
 
     // take ownership of buffer and return, otherwise return empty string
+    // coverity[tainted_data] - unhelpful untrusted loop bound
     return pStr ? OUString(pStr, SAL_NO_ACQUIRE) : OUString();
 }
 

Reply via email to