Antonio Quartulli badecb001a mac80211: fix SSID copy on IBSS JOIN
The 'ssid' field of the cfg80211_ibss_params is a u8 pointer and
its length is likely to be less than IEEE80211_MAX_SSID_LEN most
of the time.

This patch fixes the ssid copy in ieee80211_ibss_join() by using
the SSID length to prevent it from reading beyond the string.

Cc: stable@vger.kernel.org
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
[rewrapped commit message, small rewording]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-10-26 22:52:18 +02:00
..
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:20 -04:00
2012-06-24 11:32:29 +02:00
2012-09-06 17:55:00 +02:00
2012-06-24 11:33:18 +02:00
2012-06-24 11:32:29 +02:00
2009-07-10 15:01:49 -04:00
2012-06-24 11:32:29 +02:00
2012-10-26 22:52:18 +02:00
2012-06-24 11:33:18 +02:00
2012-06-24 11:32:38 +02:00
2012-08-20 14:13:41 +02:00
2011-03-31 11:26:23 -03:00
2012-06-22 11:26:58 +02:00
2012-06-24 11:33:18 +02:00
2012-03-13 14:54:16 -04:00
2012-06-20 17:35:22 +02:00
2012-06-20 17:35:22 +02:00