summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-21 12:35:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-21 12:35:11 +0100
commite3d76b24e43b9e43580814523e8a1c60cbbca731 (patch)
treefea31fafd380d5005c55ae92890512d6ab5ca1b7 /registry
parent2975abf7964de1f4b705204caac722b3ea69cb8b (diff)
Silence unhelpful cid#1215304 untrusted loop bound warnings
Change-Id: If4db6a631ad6b24ca6ecfef81a0a20b766ed6324
Diffstat (limited to 'registry')
-rw-r--r--registry/source/regimpl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 3d44092892c7..37813095e0af 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -326,6 +326,8 @@ void dumpType(typereg::Reader const & reader, OString const & indent) {
printf(
"%s parameter count: %u\n", indent.getStr(),
static_cast< unsigned int >(reader.getMethodParameterCount(i)));
+ // coverity[tainted_data] cid#1215304 unhelpfully warns about an
+ // untrusted loop bound here:
for (sal_uInt16 j = 0; j < reader.getMethodParameterCount(i); ++j)
{
printf(
@@ -366,6 +368,8 @@ void dumpType(typereg::Reader const & reader, OString const & indent) {
printf(
"%s exception count: %u\n", indent.getStr(),
static_cast< unsigned int >(reader.getMethodExceptionCount(i)));
+ // coverity[tainted_data] cid#1215304 unhelpfully warns about an
+ // untrusted loop bound here:
for (sal_uInt16 j = 0; j < reader.getMethodExceptionCount(i); ++j)
{
printf(