Silence unhelpful cid#1215304 untrusted loop bound warnings
Change-Id: If4db6a631ad6b24ca6ecfef81a0a20b766ed6324
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user