mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
fuser: a bit of safety in scanf
This commit is contained in:
parent
a46dd89e94
commit
6b7971805c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user