Module Name: src
Committed By: christos
Date: Wed Jun 8 01:33:08 UTC 2016
Modified Files:
src/external/bsd/dhcpcd/dist: dhcp-common.c
Log Message:
fix variable length stack allocation from upstream
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/bsd/dhcpcd/dist/dhcp-common.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/dist/dhcp-common.c
diff -u src/external/bsd/dhcpcd/dist/dhcp-common.c:1.16 src/external/bsd/dhcpcd/dist/dhcp-common.c:1.17
--- src/external/bsd/dhcpcd/dist/dhcp-common.c:1.16 Mon May 9 06:15:59 2016
+++ src/external/bsd/dhcpcd/dist/dhcp-common.c Tue Jun 7 21:33:08 2016
@@ -1,5 +1,5 @@
#include <sys/cdefs.h>
- __RCSID("$NetBSD: dhcp-common.c,v 1.16 2016/05/09 10:15:59 roy Exp $");
+ __RCSID("$NetBSD: dhcp-common.c,v 1.17 2016/06/08 01:33:08 christos Exp $");
/*
* dhcpcd - DHCP client daemon
@@ -833,7 +833,7 @@ int
dhcp_set_leasefile(char *leasefile, size_t len, int family,
const struct interface *ifp)
{
- char ssid[len];
+ char ssid[1 + (IF_SSIDLEN * 4) + 1];
if (ifp->name[0] == '\0') {
strlcpy(leasefile, ifp->ctx->pidfile, len);