]> gitweb.michael.orlitzky.com - mjo-overlay.git/blob - net-dns/djbdns/files/CVE2009-0858_0001-check-response-domain-name-length.patch
23d8e9f86b12515cea712f64665dca529174dfea
[mjo-overlay.git] / net-dns / djbdns / files / CVE2009-0858_0001-check-response-domain-name-length.patch
1 --- a/response.c
2 +++ b/response.c
3 @@ -34,7 +34,7 @@ int response_addname(const char *d)
4 uint16_pack_big(buf,49152 + name_ptr[i]);
5 return response_addbytes(buf,2);
6 }
7 - if (dlen <= 128)
8 + if ((dlen <= 128) && (response_len < 16384))
9 if (name_num < NAMES) {
10 byte_copy(name[name_num],dlen,d);
11 name_ptr[name_num] = response_len;