aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRebecca Mckeever <[email protected]>2022-04-20 07:23:28 -0500
committerGreg Kroah-Hartman <[email protected]>2022-04-22 16:41:28 +0200
commit17c8129e06241b635c7945d109eec498301628d3 (patch)
tree66cbf6d42d19c2665a1b8b4cf31f4cd3e3e19483 /tools/perf/scripts/python
parent55de6cb7f81c82dea1bdb12cd3818280af7abd87 (diff)
staging: rtl8192u: change get_key functions to return 0 instead of -1
Currently, these three get_key functions return -1 when the provided len value is less a specific key length value, which can result in buffer overflow depending on how the returned value is used. These functions are used in three places in ieee80211/ieee80211_wx.c: ieee80211_wx_get_encode() : The behavior of this function will be unchanged. ieee80211_wx_get_encode_ext() : The result of the get_key function is written to ext->key_len, resulting in a buffer overflow if the result is negative. ieee80211_wx_set_encode() : The behavior of this function will change. When len is less than the key length value, it will set a default key of all 0. Suggested-by: Dan Carpenter <[email protected]> Signed-off-by: Rebecca Mckeever <[email protected]> Link: https://lore.kernel.org/r/Yl/7QPKXer7YtXOs@bertie Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions