madwifi: fix excessive stack usage in the wlanconfig tool
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 31 May 2009 15:04:45 +0000 (15:04 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 31 May 2009 15:04:45 +0000 (15:04 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16235 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/madwifi/patches/439-wlanconfig_stack_usage.patch [new file with mode: 0644]

diff --git a/package/madwifi/patches/439-wlanconfig_stack_usage.patch b/package/madwifi/patches/439-wlanconfig_stack_usage.patch
new file mode 100644 (file)
index 0000000..dc23992
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/tools/wlanconfig.c
++++ b/tools/wlanconfig.c
+@@ -653,7 +653,7 @@ list_stations(const char *ifname)
+ static void
+ list_scan(const char *ifname)
+ {
+-      uint8_t buf[24 * 1024];
++      static uint8_t buf[24 * 1024];
+       char ssid[14];
+       uint8_t *cp;
+       int len;