Artur Wojcik: Fix for buffer overflow defect.

Martin F. Krafft madduck at alioth.debian.org
Wed Jan 27 02:03:50 UTC 2010


Module: mdadm
Branch: upstream
Commit: 7a6ecd55444b703050d3655eb04a22656e37488b
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=7a6ecd55444b703050d3655eb04a22656e37488b

Author: Artur Wojcik <artur.wojcik at intel.com>
Date:   Thu Dec 10 12:03:39 2009 -0700

Fix for buffer overflow defect.

Buffer overflow, array index of 'nm' may be out of bounds.

Signed-off-by: Artur Wojcik <artur.wojcik at intel.com>
Signed-off-by: Dan Williams <dan.j.williams at intel.com>

---

 super-intel.c |    2 +-
 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;




More information about the pkg-mdadm-commits mailing list