* [PATCH] mdopen: Prevent overrunning the devname buffer when copying devnm into it for long md names.
@ 2016-08-23 20:37 Robert LeBlanc
0 siblings, 0 replies; only message in thread
From: Robert LeBlanc @ 2016-08-23 20:37 UTC (permalink / raw)
To: linux-raid; +Cc: dm-devel, robert
Signed-Off: Robert LeBlanc<robert@leblancnet.us>
---
mdopen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mdopen.c b/mdopen.c
index f818fdf..5af344b 100644
--- a/mdopen.c
+++ b/mdopen.c
@@ -144,7 +144,7 @@ int create_mddev(char *dev, char *name, int autof, int trustworthy,
struct createinfo *ci = conf_get_create_info();
int parts;
char *cname;
- char devname[20];
+ char devname[37];
char devnm[32];
char cbuf[400];
if (chosen == NULL)
--
2.9.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-23 20:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23 20:37 [PATCH] mdopen: Prevent overrunning the devname buffer when copying devnm into it for long md names Robert LeBlanc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox