From: Masatake YAMATO Date: Mon, 13 Feb 2023 18:59:35 +0000 (+0900) Subject: lsfd: prepare enough large buffer when reading /proc/net/unix X-Git-Tag: v2.39-rc1~75^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6d340eba3d66a3c71e481b31d352d0fb616e007;p=thirdparty%2Futil-linux.git lsfd: prepare enough large buffer when reading /proc/net/unix Signed-off-by: Masatake YAMATO --- 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",