From 6b7971805c53e49892d175e59b827873090fff7a Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 12 Jul 2008 09:32:38 +0000 Subject: [PATCH] fuser: a bit of safety in scanf --- procps/fuser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procps/fuser.c b/procps/fuser.c index d8005b568..ca7c7e267 100644 --- a/procps/fuser.c +++ b/procps/fuser.c @@ -114,7 +114,7 @@ static inode_list *scan_proc_net(const char *proto, return ilist; while (fgets(line, MAX_LINE, f)) { - char addr[64]; + char addr[68]; if (sscanf(line, "%*d: %64[0-9A-Fa-f]:%x %*x:%*x %*x %*x:%*x " "%*x:%*x %*x %*d %*d %llu", addr, &tmp_port, &uint64_inode) == 3 -- 2.25.1