Re: [PATCH] wpa_supplicant: Fix ignoring boundary 0 in config parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 29, 2024 at 09:44:12PM +0800, Chien Wong wrote:
> The following config file contains invalid items:
> ----
> filter_rssi=1234 # should be rejected
> 
> network={
>  mode=-1 # should be rejected
>  ssid="ssid"
>  psk="password"
> }
> ----
> But it is accepted by the config parser. The issue is due to using NULL
> to represent no limit. If a boundary is set to 0, it's disregarded.
> Fix this.
> Note that string parser is not affected as length cannot be negative and
> we are not limiting any string to be always empty.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux