[Libreoffice-commits] core.git: unoidl/source
Stephan Bergmann
sbergman at redhat.com
Fri Nov 21 03:41:46 PST 2014
unoidl/source/legacyprovider.cxx | 14 ++++++++++++++
1 file changed, 14 insertions(+)
New commits:
commit b296006f44d2c248547596698717fd544e49fc64
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 21 12:41:17 2014 +0100
Silence unhelpful cid#1213376 untrusted loop bound warnings
Change-Id: I0a1fcebb268bea942d4bc2d6bf835c3ffb24df3e
diff --git a/unoidl/source/legacyprovider.cxx b/unoidl/source/legacyprovider.cxx
index 9db8495..cad04e6 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(
More information about the Libreoffice-commits
mailing list