[PATCH] Fix the out of bound memory in pref_freq_list.

Jouni Malinen j at w1.fi
Sun Dec 11 15:05:24 PST 2016

On Fri, Dec 09, 2016 at 06:59:16PM +0530, Amit Purwar wrote:
> In while loop first index of pref_freq_list is checked with size of pref_freq_list and then it is accessed.

Thanks, applied. It looks like this cannot be reached in practice due to
the array being large enough (P2P_MAX_PREF_CHANNELS = 100) for there to
be any driver that would advertise enough preferred channels to reach
the end of the array. I updated the commit message to say so to make it
easier to understand impact of this.
Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list