mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
silence clang --analyzer warnin by checking rdata.length
This commit is contained in:
parent
b8e2e5dd86
commit
463f4ad70b
1 changed files with 6 additions and 1 deletions
|
|
@ -1098,7 +1098,12 @@ dns_nsec3param_deletechains(dns_db_t *db, dns_dbversion_t *ver,
|
|||
INSIST(rdata.length <= sizeof(buf));
|
||||
memcpy(buf, rdata.data, rdata.length);
|
||||
|
||||
if (buf[0] != 0 || (buf[2] & DNS_NSEC3FLAG_REMOVE) != 0 ||
|
||||
/*
|
||||
* Private NSEC3 record length >= 6.
|
||||
* <0(1), hash(1), flags(1), iterations(2), saltlen(1)>
|
||||
*/
|
||||
if (rdata.length < 6 || buf[0] != 0 ||
|
||||
(buf[2] & DNS_NSEC3FLAG_REMOVE) != 0 ||
|
||||
(nonsec && (buf[2] & DNS_NSEC3FLAG_NONSEC) != 0))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue