Re: [PATCH v3] dns_resolver: assure that dns_query() result is null-terminated

2014-06-11 Thread David Miller
From: Manuel Schölling Date: Sat, 7 Jun 2014 23:57:25 +0200 > 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 Applied, thanks. -- To unsubscribe from this list: send the line "unsubscr

[PATCH v3] dns_resolver: assure that dns_query() result is null-terminated

2014-06-07 Thread Manuel Schölling
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 --- net/dns_resolver/dns_query.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/dns_resolver/dns_query.c b/net/dns