]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dns_resolver: assure that dns_query() result is null-terminated
authorManuel Schölling <manuel.schoelling@gmx.de>
Sat, 7 Jun 2014 21:57:25 +0000 (23:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:08:25 +0000 (08:08 -0700)
commite0e196f4045d09345e2915b0e8f15f89edfe7803
tree0a0bda5fa47658a6fa62f353eff703c1f4b7831f
parent6b948b4825098dd313a1703b57e1b5b2a5e56105
dns_resolver: assure that dns_query() result is null-terminated

[ Upstream commit 84a7c0b1db1c17d5ded8d3800228a608e1070b40 ]

dns_query() credulously assumes that keys are null-terminated and
returns a copy of a memory block that is off by one.

Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/dns_resolver/dns_query.c