projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f46ffaf
)
Stack overflow in uev_trigger()
author
Hannes Reinecke
<hare@suse.de>
Fri, 27 Mar 2009 22:50:18 +0000
(23:50 +0100)
committer
Christophe Varoqui
<christophe.varoqui@free.fr>
Fri, 27 Mar 2009 22:50:18 +0000
(23:50 +0100)
uev_discard uses sscanf to write a 10 byte string into an array,
but I forgot to take the trailing NULL byte into account.
multipathd/main.c
patch
|
blob
|
history
diff --git
a/multipathd/main.c
b/multipathd/main.c
index
b7532f1
..
8a1a63d
100644
(file)
--- a/
multipathd/main.c
+++ b/
multipathd/main.c
@@
-607,7
+607,7
@@
static int
uev_discard(char * devpath)
{
char *tmp;
- char a[1
0], b[10
];
+ char a[1
1], b[11
];
/*
* keep only block devices, discard partitions