source: npl/internetserver/djbdns/CVE2009-0858_0001-check-response-domain-name-length.patch @ 7afb649

gcc484perl-5.22
Last change on this file since 7afb649 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 366 bytes
RevLine 
[c5c522c]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;
Note: See TracBrowser for help on using the repository browser.