]> git.baikalelectronics.ru Git - kernel.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)
commit66797f01ac2f16519e67c24e97a38d97e5452916
tree1efd470df60143de6acd2beb73314f7f173711ad
parent2a4a211330ea2262cec03ec28633f4e937afa864
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