diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-06 07:57:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-06 07:57:19 +0000 |
commit | 9388cf013f9a2303cd839c87f2199861a145cac5 (patch) | |
tree | e71ded54af9dc0afe6d489e44f74aaaa075d7f46 /extra/djbdns/1.05-response.patch | |
parent | 0f04c6a8f2fddd18a75cb7198ce9c8ac25ceb0ea (diff) | |
download | aports-9388cf013f9a2303cd839c87f2199861a145cac5.tar.bz2 aports-9388cf013f9a2303cd839c87f2199861a145cac5.tar.xz |
extra/djbdns: security fix
http://securityandthe.net/2009/03/05/security-issue-in-djbdns-confirmed/
Diffstat (limited to 'extra/djbdns/1.05-response.patch')
-rw-r--r-- | extra/djbdns/1.05-response.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/djbdns/1.05-response.patch b/extra/djbdns/1.05-response.patch new file mode 100644 index 0000000000..eb6ae59049 --- /dev/null +++ b/extra/djbdns/1.05-response.patch @@ -0,0 +1,11 @@ +--- a/response.c.orig 2009-02-24 21:04:06.000000000 -0800 ++++ b/response.c 2009-02-24 21:04:25.000000000 -0800 +@@ -34,7 +34,7 @@ + uint16_pack_big(buf,49152 + name_ptr[i]); + return response_addbytes(buf,2); + } +- if (dlen <= 128) ++ if ((dlen <= 128) && (response_len < 16384)) + if (name_num < NAMES) { + byte_copy(name[name_num],dlen,d); + name_ptr[name_num] = response_len; |