]> git.karo-electronics.de Git - linux-beck.git/commit
mac80211: fix some snprintf misuses
authorEliad Peller <eliad@wizery.com>
Tue, 27 Aug 2013 09:40:15 +0000 (12:40 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 1 Oct 2013 10:16:51 +0000 (12:16 +0200)
commitf364ef99a8e82ee27933d6a0cf5cc1f27e9f0df9
tree1efd470df60143de6acd2beb73314f7f173711ad
parentee4bc9e75811d2c0cb5f2a2fc5b51ff037a01f47
mac80211: fix some snprintf misuses

In some debugfs related functions snprintf was used
while scnprintf should have been used instead.

(blindly adding the return value of snprintf and supplying
it to the next snprintf might result in buffer overflow when
the input is too big)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs.c
net/mac80211/rc80211_pid_debugfs.c
net/wireless/debugfs.c