summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-21 12:41:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-21 12:41:17 +0100
commitb296006f44d2c248547596698717fd544e49fc64 (patch)
tree939867fb81bd92711c277fc0af472938706d0824 /unoidl
parente3d76b24e43b9e43580814523e8a1c60cbbca731 (diff)
Silence unhelpful cid#1213376 untrusted loop bound warnings
Change-Id: I0a1fcebb268bea942d4bc2d6bf835c3ffb24df3e
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/legacyprovider.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/unoidl/source/legacyprovider.cxx b/unoidl/source/legacyprovider.cxx
index 9db84959bc70..cad04e6887d6 100644
--- a/unoidl/source/legacyprovider.cxx
+++ b/unoidl/source/legacyprovider.cxx
@@ -262,6 +262,9 @@ rtl::Reference< Entity > readEntity(
{
sal_uInt16 m
= reader.getMethodExceptionCount(k);
+ // coverity[tainted_data] cid#1213376
+ // unhelpfully warns about an untrusted loop
+ // bound here:
for (sal_uInt16 l = 0; l != m; ++l) {
getExcs.push_back(
reader.getMethodExceptionTypeName(k, l).
@@ -273,6 +276,9 @@ rtl::Reference< Entity > readEntity(
{
sal_uInt16 m
= reader.getMethodExceptionCount(k);
+ // coverity[tainted_data] cid#1213376
+ // unhelpfully warns about an untrusted loop
+ // bound here:
for (sal_uInt16 l = 0; l != m; ++l) {
setExcs.push_back(
reader.getMethodExceptionTypeName(k, l).
@@ -307,6 +313,8 @@ rtl::Reference< Entity > readEntity(
std::vector< InterfaceTypeEntity::Method::Parameter >
params;
sal_uInt16 m = reader.getMethodParameterCount(j);
+ // coverity[tainted_data] cid#1213376 unhelpfully warns
+ // about an untrusted loop bound here:
for (sal_uInt16 k = 0; k != m; ++k) {
RTParamMode mode = reader.getMethodParameterFlags(j, k);
InterfaceTypeEntity::Method::Parameter::Direction dir;
@@ -339,6 +347,8 @@ rtl::Reference< Entity > readEntity(
}
std::vector< OUString > excs;
m = reader.getMethodExceptionCount(j);
+ // coverity[tainted_data] cid#1213376 unhelpfully warns
+ // about an untrusted loop bound here:
for (sal_uInt16 k = 0; k != m; ++k) {
excs.push_back(
reader.getMethodExceptionTypeName(j, k).replace(
@@ -613,6 +623,8 @@ rtl::Reference< Entity > readEntity(
SingleInterfaceBasedServiceEntity::Constructor::
Parameter > params;
sal_uInt16 m = reader.getMethodParameterCount(j);
+ // coverity[tainted_data] cid#1213376 unhelpfully warns
+ // about an untrusted loop bound here:
for (sal_uInt16 k = 0; k != m; ++k) {
RTParamMode mode
= reader.getMethodParameterFlags(j, k);
@@ -653,6 +665,8 @@ rtl::Reference< Entity > readEntity(
}
std::vector< OUString > excs;
m = reader.getMethodExceptionCount(j);
+ // coverity[tainted_data] cid#1213376 unhelpfully warns
+ // about an untrusted loop bound here:
for (sal_uInt16 k = 0; k != m; ++k) {
excs.push_back(
reader.getMethodExceptionTypeName(j, k).replace(