From 418f63b98f8cc9a4316f7dce4889400afd6ca3aa Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 1 Feb 2016 10:56:24 +0100 Subject: [PATCH] interface-event: Fix possible out of bounds array access The array eventnames is of size 3 while the interface_event type may use the indexes 3 or 4. Signed-off-by: Hans Dedecker --- 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, -- 2.30.2