From b296006f44d2c248547596698717fd544e49fc64 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 21 Nov 2014 12:41:17 +0100 Subject: Silence unhelpful cid#1213376 untrusted loop bound warnings Change-Id: I0a1fcebb268bea942d4bc2d6bf835c3ffb24df3e --- unoidl/source/legacyprovider.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'unoidl') 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( -- cgit v1.2.3