projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a46dd89
)
fuser: a bit of safety in scanf
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 12 Jul 2008 09:32:38 +0000
(09:32 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 12 Jul 2008 09:32:38 +0000
(09:32 -0000)
procps/fuser.c
patch
|
blob
|
history
diff --git
a/procps/fuser.c
b/procps/fuser.c
index d8005b568dd88033ce77eb3cacf7a5d1938b476b..ca7c7e267fae3c52d6ddf641252c1fddd1d438a1 100644
(file)
--- 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[6
4
];
+ char addr[6
8
];
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