Skip to content
Commit 1e3d31c5 authored by Roel Kluin's avatar Roel Kluin Committed by John W. Linville
Browse files

libertas: Read buffer overflow



Check whether index is within bounds before testing the element.

(also includes "Libertas: Association request to the driver failed"

The size of the tmp buffer was too small, causing a regression

rates->rates has an arraysize of 1, so a memcpy with
MAX_RATES (14) was already causing reads out of bounds.

In get_common_rates() the memset/memcpy can be moved upwards. -- JWL)

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Tested-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1c4e9ab3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment