Thread (2 messages) 2 messages, 2 authors, 2020-10-30

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

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2020-10-30 09:09:09
Also in: kernel-janitors, linux-wireless, lkml

On Thu, 2020-10-29 at 22:24 +0000, Colin King wrote:
From: Colin Ian King <redacted>

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.
Makes sense, thanks. I'll apply it to next.

For the record, it shouldn't be possible for request->n_ssids to be
larger than what the driver limit was, and that's 20 by default and
doesn't make sense to be really much higher than that, so in practice
this won't happen.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help