]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: prepare enough large buffer when reading /proc/net/unix
authorMasatake YAMATO <yamato@redhat.com>
Mon, 13 Feb 2023 18:59:35 +0000 (03:59 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 13 Feb 2023 19:01:27 +0000 (04:01 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-sock-xinfo.c

index 535b86e42ade3726d4f17148c203ca5f93ea6fb3..749a41102639975f0c0b95d90b63b75b99b7023a 100644 (file)
@@ -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",