From 5dbb8c8d765cb5ac17a4778b0e60d9d076593380 Mon Sep 17 00:00:00 2001 From: Artur Wojcik Date: Thu, 10 Dec 2009 12:03:40 -0700 Subject: [PATCH] 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 Signed-off-by: Dan Williams --- platform-intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-intel.c b/platform-intel.c index 1516d631..30f79149 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; -- 2.39.2