summary refs log tree commit diff
path: root/lib/parser.c
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2012-10-26 18:54:25 +0200
committerJohannes Berg <johannes.berg@intel.com>2012-10-26 22:52:18 +0200
commitbadecb001a310408d3473b1fc2ed5aefd0bc92a9 (patch)
tree3c39faabf192afce572be53b96bb65ad07ea7183 /lib/parser.c
parentf7fbf70ee9db6da6033ae50d100e017ac1f26555 (diff)
downloadlinux-badecb001a310408d3473b1fc2ed5aefd0bc92a9.tar.gz
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>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions