mirror of
https://git.busybox.net/busybox.git
synced 2024-11-27 07:33:26 +08: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