mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:59:59 -04:00
WKS: reject records with zero octets at the end of the bitmap
This commit is contained in:
parent
3429c35f52
commit
9d446142d8
1 changed files with 3 additions and 0 deletions
|
|
@ -268,6 +268,9 @@ fromwire_in_wks(ARGS_FROMWIRE) {
|
|||
if (sr.length > 8 * 1024 + 5) {
|
||||
return (DNS_R_EXTRADATA);
|
||||
}
|
||||
if (sr.length > 5 && sr.base[sr.length - 1] == 0) {
|
||||
return (DNS_R_FORMERR);
|
||||
}
|
||||
if (tr.length < sr.length) {
|
||||
return (ISC_R_NOSPACE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue