Re: [PATCH] tipc: avoid possible string overflow

2018-03-30 Thread David Miller
From: Arnd Bergmann Date: Wed, 28 Mar 2018 16:02:04 +0200 > gcc points out that the combined length of the fixed-length inputs to > l->name is larger than the destination buffer size: > > net/tipc/link.c: In function 'tipc_link_create': > net/tipc/link.c:465:26: error: '%s'

RE: [PATCH] tipc: avoid possible string overflow

2018-03-28 Thread Jon Maloy
...@arndb.de>; Parthasarathy Bhuvaragan > <parthasarathy.bhuvara...@ericsson.com>; netdev@vger.kernel.org; tipc- > discuss...@lists.sourceforge.net; linux-ker...@vger.kernel.org > Subject: [PATCH] tipc: avoid possible string overflow > > gcc points out that the combine

[PATCH] tipc: avoid possible string overflow

2018-03-28 Thread Arnd Bergmann
gcc points out that the combined length of the fixed-length inputs to l->name is larger than the destination buffer size: net/tipc/link.c: In function 'tipc_link_create': net/tipc/link.c:465:26: error: '%s' directive writing up to 32 bytes into a region of size between 26 and 58