mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
ipw2x00: Write outside array bounds
> channel_index loops up to IPW_SCAN_CHANNELS, but is used after being > incremented. This might be able to access 1 past the end of the array Reported-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
0bf52b9817
commit
7dd2459d8f
1 changed files with 1 additions and 1 deletions
|
|
@ -6226,7 +6226,7 @@ static void ipw_add_scan_channels(struct ipw_priv *priv,
|
|||
};
|
||||
|
||||
u8 channel;
|
||||
while (channel_index < IPW_SCAN_CHANNELS) {
|
||||
while (channel_index < IPW_SCAN_CHANNELS - 1) {
|
||||
channel =
|
||||
priv->speed_scan[priv->speed_scan_pos];
|
||||
if (channel == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue