mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
fix coverity issues
3388. [bug] Fixed several Coverity warnings. [RT #30996]
This commit is contained in:
@@ -508,7 +508,7 @@ ip2name(dns_rpz_cidr_t *cidr, const dns_rpz_cidr_key_t *tgt_ip,
|
||||
while (i < DNS_RPZ_CIDR_WORDS * 2 && w[i] == 0)
|
||||
++i;
|
||||
}
|
||||
if (len > (int)sizeof(str))
|
||||
if (len >= (int)sizeof(str))
|
||||
return (ISC_R_FAILURE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user