aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-05-31 15:18:41 +0200
committerKalle Valo <kvalo@codeaurora.org>2019-06-01 08:06:24 +0300
commit69ae4f6aac1578575126319d3f55550e7e440449 (patch)
treeeb6c70372232d2632785ecc467ddd5718b6cb109 /tools/lib
parentiwlwifi: mvm: change TLC config cmd sent by rs to be async (diff)
downloadlinux-dev-69ae4f6aac1578575126319d3f55550e7e440449.tar.xz
linux-dev-69ae4f6aac1578575126319d3f55550e7e440449.zip
mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies()
A few places in mwifiex_uap_parse_tail_ies() perform memcpy() unconditionally, which may lead to either buffer overflow or read over boundary. This patch addresses the issues by checking the read size and the destination size at each place more properly. Along with the fixes, the patch cleans up the code slightly by introducing a temporary variable for the token size, and unifies the error path with the standard goto statement. Reported-by: huangwen <huangwen@venustech.com.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions