[OpenWrt-Devel] [PATCH netifd 10/16] interface-event: Fix possible out of bounds array access
Hans Dedecker
dedeckeh at gmail.com
Mon Feb 1 04:56:24 EST 2016
The array eventnames is of size 3 while the interface_event type may use
the indexes 3 or 4.
Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
interface-event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/interface-event.c b/interface-event.c
index cfbc15c..3cdfbdb 100644
--- a/interface-event.c
+++ b/interface-event.c
@@ -30,7 +30,7 @@ static void task_complete(struct uloop_process *proc, int ret);
static struct uloop_process task = {
.cb = task_complete,
};
-static const char * const eventnames[] = {"ifdown", "ifup", "ifupdate"};
+static const char * const eventnames[] = {"ifdown", "ifup", "ifupdate", "free", "reload"};
static void
run_cmd(const char *ifname, const char *device, enum interface_event event,
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list