summaryrefslogtreecommitdiff
path: root/drivers/ide/aec62xx.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-06-07 21:42:26 +0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-07 22:19:07 +0400
commit57a27e1d6a3bb9ad4efeebd3a8c71156d6207536 (patch)
tree2873dc389e21115f1b674134baf1fae0ecdbb087 /drivers/ide/aec62xx.c
parent6633d649788e72400b02098bd389585e2c56a557 (diff)
downloadlinux-57a27e1d6a3bb9ad4efeebd3a8c71156d6207536.tar.xz
nl80211: fix overflow in ssid_len
When one of the SSID's length passed in a scan or sched_scan request is larger than 255, there will be an overflow in the u8 that is used to store the length before checking. This causes the check to fail and we overrun the buffer when copying the SSID. Fix this by checking the nl80211 attribute length before copying it to the struct. This is a follow up for the previous commit 208c72f4fe44fe09577e7975ba0e7fa0278f3d03, which didn't fix the problem entirely. Reported-by: Ido Yariv <ido@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ide/aec62xx.c')
0 files changed, 0 insertions, 0 deletions