Re: [PATCH 1/6] ip/ipnetns: prevent potential string buffer overflow

2015-08-12 Thread Stephen Hemminger
Rather than chopping the string off, I decided to solve the problem by changing network namespace cache to use variable length structure. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.

[PATCH 1/6] ip/ipnetns: prevent potential string buffer overflow

2015-08-06 Thread Phil Sutter
Signed-off-by: Phil Sutter --- ip/ipnetns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ip/ipnetns.c b/ip/ipnetns.c index 3b704a4..32b0f51 100644 --- a/ip/ipnetns.c +++ b/ip/ipnetns.c @@ -178,7 +178,8 @@ static int netns_map_add(int nsid, char *name) retu