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>
This commit is contained in:
Artur Wojcik 2009-12-10 12:03:39 -07:00 committed by Dan Williams
parent 791b666ae8
commit 7a6ecd5544
1 changed files with 1 additions and 1 deletions

View File

@ -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;