Kaydet (Commit) b296006f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Silence unhelpful cid#1213376 untrusted loop bound warnings

Change-Id: I0a1fcebb268bea942d4bc2d6bf835c3ffb24df3e
üst e3d76b24
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment