Artur Wojcik: Fix for buffer overflow defect.

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


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

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

Fix for buffer overflow defect.

Array index of 'path' may be out of bounds. Array
'path' of size 256 may use index value(s) 0..284.

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

---

 platform-intel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/platform-intel.c b/platform-intel.c
index 1516d63..30f7914 100644
--- a/platform-intel.c
+++ b/platform-intel.c
@@ -44,7 +44,7 @@ void free_sys_dev(struct sys_dev **list)
 struct sys_dev *find_driver_devices(const char *bus, const char *driver)
 {
 	/* search sysfs for devices driven by 'driver' */
-	char path[256];
+	char path[292];
 	char link[256];
 	char *c;
 	DIR *driver_dir;




More information about the pkg-mdadm-commits mailing list