Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13dcce
)
i=rread,b=20771:
author
isaac
<isaac>
Mon, 21 Sep 2009 15:25:23 +0000
(15:25 +0000)
committer
isaac
<isaac>
Mon, 21 Sep 2009 15:25:23 +0000
(15:25 +0000)
- fixed vulnerable snprintf usage in ptlrpcd_start().
lustre/ptlrpc/ptlrpcd.c
patch
|
blob
|
history
diff --git
a/lustre/ptlrpc/ptlrpcd.c
b/lustre/ptlrpc/ptlrpcd.c
index
9171ccf
..
c8f043b
100644
(file)
--- a/
lustre/ptlrpc/ptlrpcd.c
+++ b/
lustre/ptlrpc/ptlrpcd.c
@@
-360,7
+360,7
@@
int ptlrpcd_start(const char *name, struct ptlrpcd_ctl *pc)
init_completion(&pc->pc_starting);
init_completion(&pc->pc_finishing);
spin_lock_init(&pc->pc_lock);
- snprintf
(pc->pc_name, sizeof (pc->pc_name)
, name);
+ snprintf
(pc->pc_name, sizeof (pc->pc_name), "%s"
, name);
pc->pc_set = ptlrpc_prep_set();
if (pc->pc_set == NULL)
GOTO(out, rc = -ENOMEM);