From d6d340eba3d66a3c71e481b31d352d0fb616e007 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Tue, 14 Feb 2023 03:59:35 +0900 Subject: [PATCH] lsfd: prepare enough large buffer when reading /proc/net/unix Signed-off-by: Masatake YAMATO --- misc-utils/lsfd-sock-xinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lsfd-sock-xinfo.c b/misc-utils/lsfd-sock-xinfo.c index 535b86e42a..749a411026 100644 --- a/misc-utils/lsfd-sock-xinfo.c +++ b/misc-utils/lsfd-sock-xinfo.c @@ -370,7 +370,7 @@ static void load_xinfo_from_proc_unix(ino_t netns_inode) unsigned int st; unsigned long inode; struct unix_xinfo *ux; - char path[ sizeof_member(struct unix_xinfo, path) ] = { 0 }; + char path[UNIX_LINE_LEN] = { 0 }; if (sscanf(line, "%*x: %*x %*x %" SCNx64 " %x %x %lu %s", -- 2.47.2