summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorArtur Wojcik <artur.wojcik@intel.com>2009-12-10 12:03:39 -0700
committerDan Williams <dan.j.williams@intel.com>2009-12-10 12:03:39 -0700
commit7a6ecd55444b703050d3655eb04a22656e37488b (patch)
treeecfafe3829d04e215e23c3eb394ce4d6bab29242 /super-intel.c
parent791b666ae864cbd6f6c4513859afeb5fc624d02f (diff)
downloadmdadm-7a6ecd55444b703050d3655eb04a22656e37488b.tar.gz
mdadm-7a6ecd55444b703050d3655eb04a22656e37488b.tar.xz
mdadm-7a6ecd55444b703050d3655eb04a22656e37488b.zip
Fix for buffer overflow defect.
Buffer overflow, array index of 'nm' may be out of bounds. Signed-off-by: Artur Wojcik <artur.wojcik@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 49e938d..5cc78f5 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -2493,7 +2493,7 @@ static int load_super_imsm_all(struct supertype *st, int fd, void **sbp,
/* load all mpbs */
for (sd = sra->devs, i = 0; sd; sd = sd->next, i++) {
struct intel_super *s = alloc_super(0);
- char nm[20];
+ char nm[32];
int dfd;
err = 1;