From: Michael Orlitzky Date: Sat, 2 Apr 2011 14:46:52 +0000 (-0400) Subject: Add the new string segment length patch for djbdns and bump the revision to include it. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=ed8ba34dc3bf478215a75ad60cc13b1beebfd592;p=mjo-overlay.git Add the new string segment length patch for djbdns and bump the revision to include it. --- diff --git a/net-dns/djbdns/djbdns-1.05-r23.ebuild b/net-dns/djbdns/djbdns-1.05-r24.ebuild similarity index 97% rename from net-dns/djbdns/djbdns-1.05-r23.ebuild rename to net-dns/djbdns/djbdns-1.05-r24.ebuild index a627728..0fd9cb7 100644 --- a/net-dns/djbdns/djbdns-1.05-r23.ebuild +++ b/net-dns/djbdns/djbdns-1.05-r24.ebuild @@ -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 index 0000000..ad383b7 --- /dev/null +++ b/net-dns/djbdns/files/string_length_255.patch @@ -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);