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:
parent
791b666ae8
commit
7a6ecd5544
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue