Re: [PATCH][next] nl80211/cfg80211: fix potential infinite loop

2020-10-30 Thread Johannes Berg
On Thu, 2020-10-29 at 22:24 +, Colin King wrote: > From: Colin Ian King > > The for-loop iterates with a u8 loop counter and compares this > with the loop upper limit of request->n_ssids which is an int type. > There is a potential infinite loop if n_ssids is larger than the > u8 loop counter

[PATCH][next] nl80211/cfg80211: fix potential infinite loop

2020-10-29 Thread Colin King
From: Colin Ian King The for-loop iterates with a u8 loop counter and compares this with the loop upper limit of request->n_ssids which is an int type. There is a potential infinite loop if n_ssids is larger than the u8 loop counter, so fix this by making the loop counter an int. Addresses-Cover