tipc: fix an infoleak in tipc_nl_compat_link_dump

[ Upstream commit 5d2be1422e ]

link_info.str is a char array of size 60. Memory after the NULL
byte is not initialized. Sending the whole object out can cause
a leak.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Kangjie Lu 2016-07-14 15:02:06 +01:00 • committed by Greg Kroah-Hartman
commit 5fb7161192