mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-23 01:40:23 -05:00
place a upper bound on rdcount
This commit is contained in:
parent
38cf49d0ef
commit
d2fbb50b98
1 changed files with 1 additions and 1 deletions
|
|
@ -2375,7 +2375,7 @@ load_raw(dns_loadctx_t *lctx) {
|
|||
rdatalist.covers = isc_buffer_getuint16(&target);
|
||||
rdatalist.ttl = isc_buffer_getuint32(&target);
|
||||
rdcount = isc_buffer_getuint32(&target);
|
||||
if (rdcount == 0) {
|
||||
if (rdcount == 0 || rdcount > 0xffff) {
|
||||
result = ISC_R_RANGE;
|
||||
goto cleanup;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue