]> gitweb.michael.orlitzky.com - mjo-overlay.git/commitdiff
Add the new string segment length patch for djbdns and bump the revision to include it.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 2 Apr 2011 14:46:52 +0000 (10:46 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 2 Apr 2011 14:46:52 +0000 (10:46 -0400)
net-dns/djbdns/djbdns-1.05-r24.ebuild [moved from net-dns/djbdns/djbdns-1.05-r23.ebuild with 97% similarity]
net-dns/djbdns/files/string_length_255.patch [new file with mode: 0644]

similarity index 97%
rename from net-dns/djbdns/djbdns-1.05-r23.ebuild
rename to net-dns/djbdns/djbdns-1.05-r24.ebuild
index a62772886f848e8784419f115f55d9ad8cfc60d1..0fd9cb7ebdf72a960add22f5b1824fedf4d630b7 100644 (file)
@@ -42,7 +42,8 @@ src_unpack() {
        epatch \
                "${FILESDIR}/headtail.patch" \
                "${FILESDIR}/dnsroots.patch" \
-               "${FILESDIR}/dnstracesort.patch"
+               "${FILESDIR}/dnstracesort.patch" \
+               "${FILESDIR}/string_length_255.patch"
 
        # Fix CVE2009-0858
        epatch "${FILESDIR}/CVE2009-0858_0001-check-response-domain-name-length.patch"
diff --git a/net-dns/djbdns/files/string_length_255.patch b/net-dns/djbdns/files/string_length_255.patch
new file mode 100644 (file)
index 0000000..ad383b7
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/tinydns-data.c   2001-02-11 16:11:45.000000000 -0500
++++ b/tinydns-data.c   2011-04-02 10:41:34.356302891 -0400
+@@ -399,7 +399,7 @@
+       i = 0;
+       while (i < f[1].len) {
+         k = f[1].len - i;
+-        if (k > 127) k = 127;
++        if (k > 255) k = 255;
+         ch = k;
+         rr_add(&ch,1);
+         rr_add(f[1].s + i,k);