]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: fix SSID copy on IBSS JOIN
authorAntonio Quartulli <ordex@autistici.org>
Fri, 26 Oct 2012 16:54:25 +0000 (18:54 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:46:57 +0000 (16:46 +0000)
commite03a4913b8696586da297393a752c3b0a6b01314
tree1f78303ae512c44f78532482486fd88b18e068b2
parent600c1eef55f14967c43819a34108ca2c7dabbbdd
mac80211: fix SSID copy on IBSS JOIN

commit badecb001a310408d3473b1fc2ed5aefd0bc92a9 upstream.

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.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
[rewrapped commit message, small rewording]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/mac80211/ibss.c