From: Artur Wojcik Date: Thu, 10 Dec 2009 19:03:39 +0000 (-0700) Subject: Fix for buffer overflow defect. X-Git-Tag: mdadm-3.1.2~63^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a6ecd55444b703050d3655eb04a22656e37488b;p=thirdparty%2Fmdadm.git Fix for buffer overflow defect. Buffer overflow, array index of 'nm' may be out of bounds. Signed-off-by: Artur Wojcik Signed-off-by: Dan Williams --- diff --git a/super-intel.c b/super-intel.c index 49e938dd..5cc78f56 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;