summaryrefslogtreecommitdiffstats
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-04-11 11:42:03 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-04-11 11:55:33 +0200
commit6624bb34b4eb19f715db9908cca00122748765d7 (patch)
treeb0fe7bcba794ce6bbc3d6cff1d84ac336adb5a8b /lib/assoc_array.c
parentath9k: Fix usage of driver-private space in tx_info (diff)
downloadlinux-6624bb34b4eb19f715db9908cca00122748765d7.tar.xz
linux-6624bb34b4eb19f715db9908cca00122748765d7.zip
nl80211: correctly check NL80211_ATTR_REG_ALPHA2 size
We need this to be at least two bytes, so we can access alpha2[0] and alpha2[1]. It may be three in case some userspace used NUL-termination since it was NLA_STRING (and we also push it out with NUL-termination). Cc: stable@vger.kernel.org Reported-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20220411114201.fd4a31f06541.Ie7ff4be2cf348d8cc28ed0d626fc54becf7ea799@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions