projects
/
openwrt
/
staging
/
robimarko.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f55102
)
swconfig: fix off-by-one error, causing segfaults on gcc 4.6+ (fixes #9765)
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 12 Feb 2012 19:27:01 +0000
(19:27 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 12 Feb 2012 19:27:01 +0000
(19:27 +0000)
SVN-Revision: 30485
package/swconfig/src/swlib.c
patch
|
blob
|
history
diff --git
a/package/swconfig/src/swlib.c
b/package/swconfig/src/swlib.c
index 531a23a1ab00f68a7827c40682f72120a159641a..de08717e33a069fe9d2d5e441da02f75579c361f 100644
(file)
--- a/
package/swconfig/src/swlib.c
+++ b/
package/swconfig/src/swlib.c
@@
-38,7
+38,7
@@
static struct nl_sock *handle;
static struct nl_cache *cache;
static struct genl_family *family;
-static struct nlattr *tb[SWITCH_ATTR_MAX];
+static struct nlattr *tb[SWITCH_ATTR_MAX
+ 1
];
static int refcount = 0;
static struct nla_policy port_policy[] = {